changeset 395:37e30696c0a8

Don't raise an exception when the repository node associated with a build config has been since removed.
author cmlenz
date Fri, 03 Aug 2007 12:23:24 +0000
parents 932d4d3ac790
children d54717038e3d
files bitten/queue.py
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/queue.py
+++ b/bitten/queue.py
@@ -43,7 +43,12 @@
     env = config.env
     if not db:
         db = env.get_db_cnx()
-    node = repos.get_node(config.path)
+    try:
+        node = repos.get_node(config.path)
+    except NoSuchNode, e:
+        env.log.warn('Node for configuration %r not found', config.name,
+                     exc_info=True)
+        return
 
     for path, rev, chg in node.get_history():
 
Copyright (C) 2012-2017 Edgewall Software