[rhmessaging-commits] rhmessaging commits: r3861 - mgmt/trunk/mint/python/mint.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Mon Mar 1 10:12:49 EST 2010


Author: justi9
Date: 2010-03-01 10:12:49 -0500 (Mon, 01 Mar 2010)
New Revision: 3861

Modified:
   mgmt/trunk/mint/python/mint/update.py
Log:
Handle missing referent classes

Modified: mgmt/trunk/mint/python/mint/update.py
===================================================================
--- mgmt/trunk/mint/python/mint/update.py	2010-02-26 19:02:26 UTC (rev 3860)
+++ mgmt/trunk/mint/python/mint/update.py	2010-03-01 15:12:49 UTC (rev 3861)
@@ -161,8 +161,12 @@
             name = name[:-3]
 
         className = name[0].upper() + name[1:]
-        otherClass = getattr(mint, className)
 
+        try:
+            otherClass = getattr(mint, className)
+        except AttributeError:
+            return
+
         foreignKey = name + "_id"
 
         object_id = str(QmfObjectId(oid.first, oid.second))



More information about the rhmessaging-commits mailing list