8000 Don't prepend the error code to the exception message attribute · rbarner14/twilio-python@0fa735e · GitHub
[go: up one dir, main page]

Skip to content

Commit 0fa735e

Browse files
committed
Don't prepend the error code to the exception message attribute
1 parent 8779f2e commit 0fa735e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

twilio/rest/resources/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def make_twilio_request(method, uri, **kwargs):
151151
try:
152152
error = json.loads(resp.content)
153153
code = error["code"]
154-
message = "%s: %s" % (code, error["message"])
154+
message = error["message"]
155155
except:
156156
code = None
157157
message = resp.content

0 commit comments

Comments
 (0)
0