From: Sapan Bhatia Date: Sun, 21 Dec 2014 07:32:50 +0000 (-0500) Subject: Worked around an exception X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=62370da2ec08b055ae9b651d09fad9462110669c;p=plstackapi.git Worked around an exception --- diff --git a/planetstack/model_policy.py b/planetstack/model_policy.py index 38cc4df..de6f73d 100644 --- a/planetstack/model_policy.py +++ b/planetstack/model_policy.py @@ -12,8 +12,12 @@ def EnableModelPolicy(x): modelPolicyEnabled = x def update_dep(d, o): - if (d.updated < o.updated): - d.save(update_fields=['updated']) + try: + if (d.updated < o.updated): + d.save(update_fields=['updated']) + except AttributeError,e: + pdb.set_trace() + raise e def delete_if_inactive(d, o): #print "Deleting %s (%s)"%(d,d.__class__.__name__)