LoginRequired: login_required #743
Unanswered
samuelbraun04
asked this question in
Q&A
Replies: 2 comments 12 replies
-
|
For now, I added a try-catch statement around the "#Go to profile" line, looking for LoginRequired. I'm not sure if this is a permanent solution however. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I suggest you to check that the login was successful by moving your try/except like this bot = Client()
bot.load_settings(file)
bot.login(username, password)
try:
bot_account = bot.account_info()
except LoginRequired:
bot.relogin() # Use clean session
# Don't forget to dump settings!
bot.dump_settings(file)
# And then you can put your code
... |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My program was working yesterday, but running it again today I'm getting an error (check the traceback).
Weird thing is, I'm getting a "login_required" error – but it's successfully logging in? I'm getting the error around the lines marked with a *
FULL TRACEBACK:
Beta Was this translation helpful? Give feedback.
All reactions