From: Michael Tremer Date: Wed, 7 Dec 2016 20:10:44 +0000 (+0100) Subject: http: Catch all download errors and move on to the next mirror X-Git-Tag: 0.9.28~1285^2~1393 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a27e3f81f456ce89df64406dabcbdce4e391e1eb;p=pakfire.git http: Catch all download errors and move on to the next mirror Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/http.py b/src/pakfire/http.py index 7ed97c417..12e0f3530 100644 --- a/src/pakfire/http.py +++ b/src/pakfire/http.py @@ -322,7 +322,7 @@ class Client(object): # break the loop break - except HTTPError as e: + except DownloadError as e: # If we have mirrors, we will try using the next one if self.mirrors: skipped_mirrors.append(self.mirror)