Skip to content
Snippets Groups Projects
Commit d3c0ebe1 authored by Gandalf's avatar Gandalf
Browse files

[JES] Fix a bug in handling follow operations. The 'what' was indeed a list,...

[JES] Fix a bug in handling follow operations. The 'what' was indeed a list, and the first element is expected to be a string but was a dict instead of a string, leading to the dreaded 'TypeError: unhashable type: dict' problem.
parent 7d689c61
No related branches found
No related tags found
5 merge requests!456Release candidate v1 24,!230Setup monitoring with pghero,!135Enable postgres monitoring on CI server,!16Dk issue 3 concurrent block query rebase,!15Dk issue 3 concurrent block query
......@@ -72,6 +72,8 @@ class Follow:
return None
what = first(op['what']) or ''
if not isinstance(what, str):
return None
defs = {'': 0, 'blog': 1, 'ignore': 2}
if what not in defs:
return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment