From 07dafad26dc4231f16b578c5317d5d78fd6c4619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Tue, 3 Dec 2019 22:55:29 +0100 Subject: [PATCH] [twitter] attempt to fix infinite loops (#499) (Hopefully this doesn't break anything else) --- gallery_dl/extractor/twitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery_dl/extractor/twitter.py b/gallery_dl/extractor/twitter.py index e07dab47f8..8ef966f2e6 100644 --- a/gallery_dl/extractor/twitter.py +++ b/gallery_dl/extractor/twitter.py @@ -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(