We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c4f8f86 + 6bbad0a commit b5df185Copy full SHA for b5df185
1 file changed
mailboxer/mailboxer.py
@@ -37,7 +37,9 @@ def _post(self, url, data):
37
return returned
38
39
def _get_paged(self, url, obj):
40
- return [obj(data) for data in requests.get(url).json()["result"]]
+ response = requests.get(url)
41
+ response.raise_for_status()
42
+ return [obj(data) for data in response.json()["result"]]
43
44
def _mailbox_url(self, address):
45
return self.url.add_path("mailboxes").add_path(address)
0 commit comments