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
|
return
|
||||||
# Catch some errors
|
# Catch some errors
|
||||||
if data["entry_data"]["ProfilePage"][0]["user"]["is_private"]:
|
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)
|
raise LoginRequiredException("user %s requires login" % name)
|
||||||
if not data["entry_data"]["ProfilePage"][0]["user"]["followed_by_viewer"]:
|
if not data["entry_data"]["ProfilePage"][0]["user"]["followed_by_viewer"]:
|
||||||
raise PrivateProfileNotFollowedException("user %s: private but not followed" % name)
|
raise PrivateProfileNotFollowedException("user %s: private but not followed" % name)
|
||||||
|
Loading…
Reference in New Issue
Block a user