[Piuparts-commits] [piuparts] 01/02: p-a: skip log on http error while talking to the bts

Holger Levsen holger at layer-acht.org
Mon May 2 08:47:06 UTC 2016


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

holger pushed a commit to branch develop
in repository piuparts.

commit 3eff1f978d7f4c9c2e499ddeb0ead71f19a753d8
Author: Andreas Beckmann <anbe at debian.org>
Date:   Mon May 2 01:08:50 2016 +0200

    p-a: skip log on http error while talking to the bts
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
---
 debian/changelog    | 2 ++
 piuparts-analyze.py | 7 +++++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 9755dd9..b746fde 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,8 @@ piuparts (0.71) UNRELEASED; urgency=medium
     - New section [wheezy-security] (also used by wheezy LTS).
     - New section [jessie-security].
   * distros.conf: squeeze-* has been archived/removed.
+  * piuparts-analyze.py:
+    - Skip logfile on HTTPError while querying the BTS.
   * piuparts-reports.py:
     - Skip section on HTTPError while downloading Packages.
   * post_setup_forbid_home: Adjust for basefiles now shipping /home/
diff --git a/piuparts-analyze.py b/piuparts-analyze.py
index a7afa7b..940b25e 100644
--- a/piuparts-analyze.py
+++ b/piuparts-analyze.py
@@ -179,8 +179,11 @@ def mark_logs_with_reported_bugs():
         pversion = package_source_version(failed_log)
         failed_errors = extract_errors(failed_log)
         moved = False
-        abugs = piuparts_bugs_affecting(pname)
-        bugs = piuparts_bugs_in(pname)
+        try:
+            abugs = piuparts_bugs_affecting(pname)
+            bugs = piuparts_bugs_in(pname)
+        except SOAPpy.Errors.HTTPError:
+            continue
         for bug in abugs + bugs:
             if moved:
                 break

-- 
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