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

Log ImportError exception. #261

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

colossatr0n
Copy link

@colossatr0n colossatr0n commented Jan 29, 2023

I was only able to figure out the cause for the exception detailed in #260 after adding the logging statements found in the PR. It would make sense to add these logging statements into the official repository so that others can quickly diagnose backend notifier ImportError exceptions in the future.

In the case of the linked issue above, the stack trace will now contain:

ERROR: Could not import notifier from ntfy.backends.telegram. Reason: cannot import name 'MAX_MESSAGE_LENGTH' from 'telegram.constants' (/usr/local/lib/python3.10/site-packages/telegram/constants.py)

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

Successfully merging this pull request may close these issues.

None yet

1 participant