From: Michael Tremer Date: Thu, 28 Feb 2013 14:28:32 +0000 (+0000) Subject: transport: Handle proxy 504 Gateway Timeout as a connection timeout. X-Git-Tag: 0.9.25~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6a05651d22d8ceb8618aeca74d284581af0279be;p=pakfire.git transport: Handle proxy 504 Gateway Timeout as a connection timeout. --- diff --git a/python/pakfire/transport.py b/python/pakfire/transport.py index db760ece7..ec836e03e 100644 --- a/python/pakfire/transport.py +++ b/python/pakfire/transport.py @@ -258,6 +258,8 @@ class PakfireHubTransport(object): raise TransportNotFoundError, url elif e.code == 500: raise TransportInternalServerError, url + elif e.code == 504: + raise TransportConnectionTimeoutError, url # All other exceptions... raise