Author: eallen
Date: 2008-12-16 09:44:41 -0500 (Tue, 16 Dec 2008)
New Revision: 3004
Modified:
mgmt/trunk/cumin/python/cumin/model.py
Log:
Avoid exception if GetAd returns without a ["JobAd"] entry.
Modified: mgmt/trunk/cumin/python/cumin/model.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/model.py 2008-12-15 22:40:16 UTC (rev 3003)
+++ mgmt/trunk/cumin/python/cumin/model.py 2008-12-16 14:44:41 UTC (rev 3004)
@@ -2448,8 +2448,11 @@
self.got_data = False
def completion(status, job_ads):
- self.job_ads = job_ads["JobAd"]
- self.got_data = True
+ try:
+ self.job_ads = job_ads["JobAd"]
+ self.got_data = True
+ except:
+ pass
def predicate():
return self.got_data
Show replies by date