8000 Pass the Twilio error code with TwilioRestException by moses-palmer · Pull Request #100 · twilio/twilio-python · GitHub
[go: up one dir, main page]

Skip to content

Pass the Twilio error code with TwilioRestException #100

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 Dec 13, 2012
Merged

Pass the Twilio error code with TwilioRestException #100

merged 2 commits into from Dec 13, 2012

Conversation

moses-palmer
Copy link
Contributor

These commits add the 'code' attribute to TwilioRestException. It is set from the 'code' attribute of the response in make_twilio_request.

We use this to check the reason for failure when sending an SMS to avoid having to parse the error message.

@kevinburke
Copy link
< 8F16 div class="d-none d-sm-flex"> Contributor

LGTM

kevinburke pushed a commit that referenced this pull request Dec 13, 2012
…ption

Pass the Twilio error code with TwilioRestException
@kevinburke kevinburke merged commit ee4a3d2 into twilio:master Dec 13, 2012
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.

2 participants
0