Skip to content
This repository was archived by the owner on Aug 28, 2020. It is now read-only.

Update TROUBLESHOOTING.md #159

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions TROUBLESHOOTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import urllib2
try:
response = sg.client.mail.send.post(request_body=mail.get())
except urllib2.HTTPError as e:
print e.read()
print(e.read())
```

To read the error message returned by SendGrid's API in Python 3.X:
Expand All @@ -58,7 +58,7 @@ import urllib
try:
response = sg.client.mail.send.post(request_body=mail.get())
except urllib.error.HTTPError as e:
print e.read()
print(e.read())
```

<a name="versions"></a>
Expand Down