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

fixed twilio exception import #32

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

fixed twilio exception import #32

wants to merge 1 commit into from

Conversation

nickbarth
Copy link

The Twilio exception class was moved in the latest version of their Python package.

https://github.com/twilio/twilio-python/blob/2d87f002d78d5c177eed8e0b8a8226fe2a5c2e1a/README.md#handling-exceptions

from twilio.base.exceptions import TwilioRestException

Without it you get an import error:

 File "/home/nick/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.6/site-packages/deux/notifications.py", line 4, in <module>
    from twilio.rest.exceptions import TwilioRestException
ModuleNotFoundError: No module named 'twilio.rest.exceptions'

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.

1 participant