[Piuparts-commits] [piuparts] 02/07: p-r: catch URLError

Holger Levsen holger at layer-acht.org
Tue Sep 12 11:59:20 UTC 2017


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit 57cc67d05f5ef18e4ae44f1651b4f3206b5ae800
Author: Andreas Beckmann <anbe at debian.org>
Date:   Mon Sep 11 13:53:02 2017 +0200

    p-r: catch URLError
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 piuparts-report.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/piuparts-report.py b/piuparts-report.py
index b97e690..19e8a61 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -38,7 +38,7 @@ import yaml
 import hashlib
 import pickle
 import random
-from urllib2 import HTTPError
+from urllib2 import HTTPError, URLError
 
 # if python-rpy2 ain't installed, we don't draw fancy graphs
 try:
@@ -1781,7 +1781,7 @@ def main():
                 section.generate_output(output_directory, section_names, problem_list, web_host)
             except MissingSection as e:
                 logging.error("Configuration Error in section '%s': %s" % (section_name, e))
-            except HTTPError as e:
+            except (HTTPError, URLError) as e:
                 logging.error("Failed to fetch Packages files for section '%s' : %s" % (section_name, e))
 
         # static pages

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git



More information about the Piuparts-commits mailing list