From ce38f5880fab8750ba083c6a88c527cbc1521772 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Tue, 22 Aug 2017 09:21:47 +0200 Subject: [PATCH] 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. --- instaloader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/instaloader.py b/instaloader.py index 78a7a87..4b94be8 100755 --- a/instaloader.py +++ b/instaloader.py @@ -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