Skip to content
Snippets Groups Projects
Commit 867d5355 authored by Martin Šmíd's avatar Martin Šmíd
Browse files

Fix get_discussions infinite cycle when discussions are empty

parent d23629bc
No related branches found
No related tags found
No related merge requests found
......@@ -151,6 +151,9 @@ class Discussions(object):
elif discussion_type == "tags":
dd = Trending_tags(discussion_query, steem_instance=self.steem, lazy=self.lazy)
if not dd:
return
for d in dd:
double_result = False
if discussion_type == "tags":
......
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