Revert include the gateway error in QPS

This commit is contained in:
Mario de Frutos 2016-08-01 11:23:06 +02:00
parent 0e556ee9ac
commit 4d47b905e8

View File

@ -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