From b7ea0d595393050fc4078471ca7e9ca63787db57 Mon Sep 17 00:00:00 2001 From: Alexander Graf <mail@agraf.me> Date: Sun, 23 Sep 2018 10:09:08 +0200 Subject: [PATCH] download_profiles: Check errors only if required Fixes #178, where with `--profile-pic-only` an error message is printed (without any further implications) when downloading profile pictures of private profiles without being logged in. --- instaloader/instaloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instaloader/instaloader.py b/instaloader/instaloader.py index f7e8a9e..9c1e0cf 100644 --- a/instaloader/instaloader.py +++ b/instaloader/instaloader.py @@ -823,7 +823,7 @@ class Instaloader: self.download_profilepic(profile) # Catch some errors - if profile.is_private: + if profile.is_private and (tagged or highlights or posts): if not self.context.is_logged_in: raise LoginRequiredException("--login=USERNAME required.") if not profile.followed_by_viewer and self.context.username != profile.username: