]> git.ipfire.org Git - pakfire.git/commitdiff
http: Catch all download errors and move on to the next mirror
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 7 Dec 2016 20:10:44 +0000 (21:10 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 7 Dec 2016 20:10:44 +0000 (21:10 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/http.py

index 7ed97c417d66bc8de33427aa563f770d7d22533c..12e0f35306b34e6b911b738bb4bf49c288327499 100644 (file)
@@ -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)