From: Mike O'Connor Date: Mon, 9 Mar 2009 17:41:33 +0000 (-0400) Subject: trap error from python-btsutils X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=780e608fece09400e07a39e020761279b1eed160;p=dak trap error from python-btsutils --- diff --git a/dak/bts_categorize.py b/dak/bts_categorize.py index fd9cd090..ef239efa 100755 --- a/dak/bts_categorize.py +++ b/dak/bts_categorize.py @@ -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