catch exceptions when purging objects
Change-Id: I2551fcf0bb882bb31d0923cb1451c6b936499d45
diff --git a/xos/synchronizers/model_policy.py b/xos/synchronizers/model_policy.py
index 5d60dda..d6145da 100644
--- a/xos/synchronizers/model_policy.py
+++ b/xos/synchronizers/model_policy.py
@@ -217,7 +217,13 @@
if (not deps):
journal_object(d, "reaper.purge")
print 'Reaper: purging object %r'%d
- d.delete(purge=True)
+ try:
+ d.delete(purge=True)
+ except:
+ journal_object(d, "reaper.purge.exception")
+ print 'Reaper: exception purging object %r'%d
+ traceback.print_exc()
+
try:
reset_queries()