Add notice of 2FA currently not working

This commit is contained in:
Alexander Graf
2023-11-15 07:53:45 +01:00
parent f80eebec7a
commit 82b46605a2
+4
View File
@@ -160,6 +160,10 @@ def _main(instaloader: Instaloader, targetlist: List[str],
try: try:
instaloader.login(username, password) instaloader.login(username, password)
except TwoFactorAuthRequiredException: except TwoFactorAuthRequiredException:
# https://github.com/instaloader/instaloader/issues/1217
instaloader.context.error("Warning: There have been reports of 2FA currently not working. "
"Consider importing session cookies from your browser with "
"--load-cookies.")
while True: while True:
try: try:
code = input("Enter 2FA verification code: ") code = input("Enter 2FA verification code: ")