Skip to content

Commit f549dc0

Browse files
Update how to read error message
1 parent 5fddf99 commit f549dc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ With Mail Helper Class
124124
print(response.body)
125125
print(response.headers)
126126
except Exception as e:
127-
print(e.message)
127+
print(str(e))
128128
129129
The ``Mail`` constructor creates a `personalization object`_ for you.
130130
`Here <https://github.com/sendgrid/sendgrid-python/blob/master/use_cases/kitchen_sink.md>`__ is an example of how to add it.
@@ -168,7 +168,7 @@ The following is the minimum needed code to send an email without the /mail/send
168168
print(response.body)
169169
print(response.headers)
170170
except Exception as e:
171-
print(e.message)
171+
print(str(e))
172172
173173
General v3 Web API Usage (With `Fluent Interface`_)
174174
---------------------------------------------------

0 commit comments

Comments
 (0)