diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index e413799f9a..9627816b41 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -689,8 +689,6 @@ def _get_login_info(self, username_option='username', password_option='password' if self._downloader is None: return (None, None) - username = None - password = None downloader_params = self._downloader.params # Attempt to use provided username and password or .netrc data @@ -700,7 +698,7 @@ def _get_login_info(self, username_option='username', password_option='password' else: username, password = self._get_netrc_login_info(netrc_machine) - return (username, password) + return username, password def _get_tfa_info(self, note='two-factor verification code'): """