From: Michael Tremer Date: Wed, 30 Nov 2016 17:37:53 +0000 (+0100) Subject: http: Don't retry on Internet Server Error X-Git-Tag: 0.9.28~1285^2~1453 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34063dfb0460fdc5926efa979dba0e7cc586950e;p=pakfire.git http: Don't retry on Internet Server Error Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/http.py b/src/pakfire/http.py index c8460197a..0964c118f 100644 --- a/src/pakfire/http.py +++ b/src/pakfire/http.py @@ -183,8 +183,8 @@ class Client(object): try: return self._one_request(url, **kwargs) - # 500 - Internal Server Error, 502 + 503 Bad Gateway Error - except (InternalServerError, BadGatewayError) as e: + # Bad Gateway Error + except BadGatewayError as e: log.exception("%s" % e.__class__.__name__) # Wait a minute before trying again.