We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45f9c93 commit d032f46Copy full SHA for d032f46
1 file changed
TROUBLESHOOTING.md
@@ -42,7 +42,7 @@ Click the "Clone or download" green button in [GitHub](https://github.com/sendgr
42
<a name="error"></a>
43
## Error Messages
44
45
-To read the error message returned by SendGrid's API:
+To read the error message returned by SendGrid's API in Python 2.X:
46
47
```python
48
import urllib2
@@ -53,6 +53,15 @@ except urllib2.HTTPError as e:
53
print e.read()
54
```
55
56
+To read the error message returned by SendGrid's API in Python 3.X:
57
+
58
+```python
59
+import urllib
60
+try:
61
+ response = sg.client.mail.send.post(request_body=mail.get())
62
+except urllib.error.HTTPError as e:
63
+ print e.read()
64
+```
65
<a name="versions"></a>
66
## Versions
67
0 commit comments