[instagram] Fix bug in ab2ffab22d (#1403)

Authored by: u-spec-png
This commit is contained in:
u-spec-png 2021-10-24 16:31:33 +00:00 committed by GitHub
parent f2fe69c7b0
commit ad64a2323f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -145,6 +145,8 @@ class InstagramIE(InfoExtractor):
def _login(self): def _login(self):
username, password = self._get_login_info() username, password = self._get_login_info()
if username is None:
return
login_webpage = self._download_webpage( login_webpage = self._download_webpage(
'https://www.instagram.com/accounts/login/', None, 'https://www.instagram.com/accounts/login/', None,