changeset 581:2cc06425117a

0.6dev: Handle any error accessing a repository node. Closes #416. Thanks to Andrea Tomasini for report and patch.
author osimons
date Mon, 13 Jul 2009 00:05:34 +0000
parents c66190747a9c
children 7f181708d048
files bitten/queue.py
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/queue.py
+++ b/bitten/queue.py
@@ -25,7 +25,6 @@
 import re
 import time
 
-from trac.versioncontrol import NoSuchNode
 from bitten.model import BuildConfig, TargetPlatform, Build, BuildStep
 
 __docformat__ = 'restructuredtext en'
@@ -50,9 +49,9 @@
         db = env.get_db_cnx()
     try:
         node = repos.get_node(config.path)
-    except NoSuchNode, e:
-        env.log.warn('Node for configuration %r not found', config.name,
-                     exc_info=True)
+    except Exception, e:
+        env.log.warn('Error accessing path %r for configuration %r',
+                    config.path, config.name, exc_info=True)
         return
 
     for path, rev, chg in node.get_history():
Copyright (C) 2012-2017 Edgewall Software