8000 Fix exception import errors and backwards compatibility. by phalt · Pull Request #180 · twilio/twilio-python · GitHub
[go: up one dir, main page]

Skip to content

Fix exception import errors and backwards compatibility. #180

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

Merged
merged 2 commits into from
Sep 30, 2014
Merged

Fix exception import errors and backwards compatibility. #180

merged 2 commits into from
Sep 30, 2014

Conversation

phalt
Copy link
Contributor
@phalt phalt commented Aug 28, 2014

Add exceptions to init.py for backwards compatibility.

Fixes #179

This allows you to import exceptions like so:

from twilio import TwilioException

and also through the full (recommended) path:

from twilio.exceptions import TwilioException

Add exceptions to __init__.py for backwards compatibility.
@darylyu
Copy link
darylyu commented Sep 5, 2014

When will this end up in pypi?

@phalt
Copy link
Contributor Author
phalt commented Sep 29, 2014

Fixes #183 Also.

This should allow:

import twilio.TwilioRestExceptions

@phalt
Copy link
Contributor Author
phalt commented Sep 29, 2014

Python3 fix in, @skimbrel or @dougblack do you want to get this in quick to get the backwards compat errors in #179 and #183 fixed?

@phalt phalt changed the title Fix #179 Fix exception import errors and backwards compatibility. Sep 29, 2014
@skimbrel
Copy link
Contributor

+1

skimbrel added a commit that referenced this pull request Sep 30, 2014
Fix exception import errors and backwards compatibility.
@skimbrel skimbrel merged commit 7df5a01 into twilio:master Sep 30, 2014
eq19 pushed a commit to VirtualNetworks/parser that referenced this pull request May 1, 2025
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.

Exceptions not importable in 3.6.7
3 participants
0