Invitarr
Invitarr copied to clipboard
NameError: name 'plex' is not defined
I am getting this error often in docker logs:
NameError: name 'plex' is not defined
how can i fix this?
Thanks and thanks for the amazing bot
I've been having a similar error, looks like my bot is either being signed out of plex, or restarted, and not logging in successfully after being online for a while. Since plex is declared in the try block, if the account.resource() call fails, plex is never declared, and so throws the python error instead of a formatted error.
Bot should not continue after failing to log into plex (maybe try the login again after a period of time?) I think crashing the bot might actually be a better solution than what it does currently, so at least we know that its failed and we can address it while the log tail is where the crash actually happened