Commit b158c2d
committed
Fixed issue #14:
- Checks that the status code is 1. If it's not then the program exits and returns the message field to the
user.
Incidentals:
- I was using `json.loads()` to turn the respone text into json. However, the request object has a method which
returns the json from the response. Thus, I have switched to using the `.json()` method.1 parent 2997d7d commit b158c2d
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
91 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
| |||
0 commit comments