Skip to content

Commit f07c101

Browse files
Merge pull request meraki#130 from deejaypro/master
Changed if clause to catch all 2XX HTTP Codes
2 parents f9d0273 + 6d3b10a commit f07c101

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

meraki/aio/rest_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ async def _request(self, metadata, method, url, **kwargs):
139139
await asyncio.sleep(1)
140140
continue
141141

142-
if status == 200:
142+
if 200 <= status < 300:
143143
if "page" in metadata:
144144
counter = metadata["page"]
145145
if self._logger:

0 commit comments

Comments
 (0)