Skip to content
Snippets Groups Projects
Unverified Commit c1bebc73 authored by Holger Nahrstaedt's avatar Holger Nahrstaedt Committed by GitHub
Browse files

Merge pull request #98 from espoem/fix/get_discussions

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