]> git.ipfire.org Git - people/stevee/pakfire.git/commitdiff
transport: Handle proxy 504 Gateway Timeout as a connection timeout.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 28 Feb 2013 14:28:32 +0000 (14:28 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 28 Feb 2013 14:28:32 +0000 (14:28 +0000)
python/pakfire/transport.py

index db760ece7fbeeefa082214630a3fc8ba80a668b8..ec836e03e03a607d7625dbfcebb36b5ff6f5f7ce 100644 (file)
@@ -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