1
0
mirror of https://github.com/instaloader/instaloader.git synced 2024-09-11 16:22:24 +02:00

Fix TypeError on retry in get_json()

This commit is contained in:
André Koch-Kramer 2017-08-24 21:17:13 +02:00
parent bb71c40b56
commit 1a26d7336c

View File

@ -506,7 +506,7 @@ class Instaloader:
self._log('The request will be retried in {} seconds.'.format(waittime))
time.sleep(waittime)
self._sleep()
self.get_json(url, params, sess, tries - 1)
return self.get_json(url, params, sess, tries - 1)
def _default_http_header(self, empty_session_only: bool = False) -> Dict[str, str]:
"""Returns default HTTP header we use for requests."""