Invitarr icon indicating copy to clipboard operation
Invitarr copied to clipboard

NameError: name 'plex' is not defined

Open cyb3rgh05t opened this issue 3 years ago • 1 comments

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

cyb3rgh05t avatar Nov 27 '21 19:11 cyb3rgh05t

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

Yoruio avatar Dec 16 '21 11:12 Yoruio