diff bitten/queue.py @ 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 026d9aa41b85
children d039348592bb
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