From 4d47b905e872ff202a04f80b45e7ea5285dcc7b6 Mon Sep 17 00:00:00 2001 From: Mario de Frutos Date: Mon, 1 Aug 2016 11:23:06 +0200 Subject: [PATCH] Revert include the gateway error in QPS --- .../lib/python/cartodb_services/cartodb_services/mapzen/qps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/python/cartodb_services/cartodb_services/mapzen/qps.py b/server/lib/python/cartodb_services/cartodb_services/mapzen/qps.py index fb32aa9..21c45a4 100644 --- a/server/lib/python/cartodb_services/cartodb_services/mapzen/qps.py +++ b/server/lib/python/cartodb_services/cartodb_services/mapzen/qps.py @@ -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