Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: name 'plex' is not defined #35

Open
cyb3rgh05t opened this issue Nov 27, 2021 · 1 comment
Open

NameError: name 'plex' is not defined #35

cyb3rgh05t opened this issue Nov 27, 2021 · 1 comment

Comments

@cyb3rgh05t
Copy link

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

@Yoruio
Copy link

Yoruio commented Dec 16, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants