1
0
mirror of https://github.com/instaloader/instaloader.git synced 2024-08-17 12:19:38 +02:00

Call download_stories in _error_catcher

download_stories() may trow a BadResponseException, which should not
cause abortion of download_profile(). Now, all calls of
download_stories() are within an _error_catcher context.
This commit is contained in:
Alexander Graf 2017-08-22 09:21:47 +02:00
parent 79f143b1f8
commit ce38f5880f

View File

@ -1159,7 +1159,8 @@ class Instaloader:
# Download stories, if requested
if download_stories or download_stories_only:
self.download_stories(userids=[profile_id], filename_target=name, fast_update=fast_update)
with self._error_catcher("Download stories of {}".format(name)):
self.download_stories(userids=[profile_id], filename_target=name, fast_update=fast_update)
if download_stories_only:
return