]> err.no Git - dak/commitdiff
trap error from python-btsutils
authorMike O'Connor <stew@vireo.org>
Mon, 9 Mar 2009 17:41:33 +0000 (13:41 -0400)
committerMike O'Connor <stew@vireo.org>
Mon, 9 Mar 2009 17:41:33 +0000 (13:41 -0400)
dak/bts_categorize.py

index fd9cd090653b640890f31964b57171dc505de16e..ef239efa15271f3a95734527231ee29cb8610b9b 100755 (executable)
@@ -122,10 +122,14 @@ class BugClassifier(object):
         controls = ""
 
         bc = BugClassifier()
-        for bug in bc.unclassified_bugs():
-            controls += bc.classify_bug(bug)
-
-        return controls
+        try:
+            for bug in bc.unclassified_bugs():
+                controls += bc.classify_bug(bug)
+
+            return controls
+        except:
+            log.error("couldn't retrive bugs from soap interface: %s" % sys.exc_info()[0])
+            return None
 
 def send_email(commands, simulate=False):
     global Cnf