You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,7 +124,7 @@ With Mail Helper Class
124
124
print(response.body)
125
125
print(response.headers)
126
126
exceptExceptionas e:
127
-
print(e.message)
127
+
print(str(e))
128
128
129
129
The ``Mail`` constructor creates a `personalization object`_ for you.
130
130
`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
168
168
print(response.body)
169
169
print(response.headers)
170
170
exceptExceptionas e:
171
-
print(e.message)
171
+
print(str(e))
172
172
173
173
General v3 Web API Usage (With `Fluent Interface`_)
0 commit comments