mirror of
https://github.com/instaloader/instaloader.git
synced 2024-09-11 16:22:24 +02:00
fix minor bug caused during refactoring
This commit is contained in:
parent
115f1c9133
commit
06f0658947
@ -218,7 +218,7 @@ def download(name, session, profile_pic_only=False, download_videos=True,
|
||||
return
|
||||
# Catch some errors
|
||||
if data["entry_data"]["ProfilePage"][0]["user"]["is_private"]:
|
||||
if not session:
|
||||
if data["config"]["viewer"] is None:
|
||||
raise LoginRequiredException("user %s requires login" % name)
|
||||
if not data["entry_data"]["ProfilePage"][0]["user"]["followed_by_viewer"]:
|
||||
raise PrivateProfileNotFollowedException("user %s: private but not followed" % name)
|
||||
|
Loading…
Reference in New Issue
Block a user