Revert include the gateway error in QPS
This commit is contained in:
parent
0e556ee9ac
commit
4d47b905e8
@ -26,7 +26,7 @@ class QPSService:
|
||||
try:
|
||||
return fn(*args, **kwargs)
|
||||
except Exception as e:
|
||||
if hasattr(e, 'response') and (e.response.status_code == 429 or e.response.status_code == 504):
|
||||
if hasattr(e, 'response') and (e.response.status_code == 429):
|
||||
self.retry(start_time, attempt_number)
|
||||
else:
|
||||
raise e
|
||||
|
Loading…
Reference in New Issue
Block a user