Skip to content

Commit a089f03

Browse files
authored
Fix missing retries check on 429 response (#304)
1 parent 724f826 commit a089f03

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

meraki/rest_session.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@ def request(self, metadata, method, url, **kwargs):
265265
self._logger.warning(f'{tag}, {operation} - {status} {reason}, retrying in {wait} seconds')
266266
time.sleep(wait)
267267
retries -= 1
268+
if retries == 0:
269+
raise APIError(metadata, response)
268270
# We're either out of retries or the client told us not to retry
269271
else:
270272
raise APIError(metadata, response)

0 commit comments

Comments
 (0)