From 780e608fece09400e07a39e020761279b1eed160 Mon Sep 17 00:00:00 2001 From: Mike O'Connor Date: Mon, 9 Mar 2009 13:41:33 -0400 Subject: [PATCH] trap error from python-btsutils --- dak/bts_categorize.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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 -- 2.39.5