Skip to content

Commit

Permalink
[twitter] attempt to fix infinite loops (#499)
Browse files Browse the repository at this point in the history
(Hopefully this doesn't break anything else)
  • Loading branch information
mikf committed Dec 3, 2019
1 parent 71acbda commit 07dafad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/extractor/twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def _tweets_from_api(self, url, max_position=None):

if "min_position" in data:
position = data["min_position"]
if position == max_position:
if position == max_position or position is None:
return
else:
position = text.parse_int(text.extract(
Expand Down

0 comments on commit 07dafad

Please sign in to comment.