Skip to content

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