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

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
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