Author: justi9
Date: 2008-01-29 14:54:09 -0500 (Tue, 29 Jan 2008)
New Revision: 1623
Modified:
mgmt/cumin/python/cumin/parameters.py
Log:
Don't blow up if no group is found.
Modified: mgmt/cumin/python/cumin/parameters.py
===================================================================
--- mgmt/cumin/python/cumin/parameters.py 2008-01-29 19:40:29 UTC (rev 1622)
+++ mgmt/cumin/python/cumin/parameters.py 2008-01-29 19:54:09 UTC (rev 1623)
@@ -20,7 +20,10 @@
if string == "__none__":
object = None
else:
- object = BrokerGroup.get(int(string))
+ try:
+ object = BrokerGroup.get(int(string))
+ except SQLObjectNotFound:
+ object = None
return object
Show replies by date