git://git.onelab.eu
/
plstackapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08c43bf
)
Worked around an exception
author
Sapan Bhatia
<sapanb@cs.princeton.edu>
Sun, 21 Dec 2014 07:32:50 +0000
(
02:32
-0500)
committer
Sapan Bhatia
<sapanb@cs.princeton.edu>
Sun, 21 Dec 2014 07:32:50 +0000
(
02:32
-0500)
planetstack/model_policy.py
patch
|
blob
|
history
diff --git
a/planetstack/model_policy.py
b/planetstack/model_policy.py
index
38cc4df
..
de6f73d
100644
(file)
--- 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__)