[z3-checkins] r6872 - z3/sqlos/trunk/event

dreamcatcher at codespeak.net dreamcatcher at codespeak.net
Fri Oct 8 18:34:35 MEST 2004


Author: dreamcatcher
Date: Fri Oct  8 18:34:35 2004
New Revision: 6872

Modified:
   z3/sqlos/trunk/event/subscriber.py
Log:
Object may have been deleted?

Modified: z3/sqlos/trunk/event/subscriber.py
==============================================================================
--- z3/sqlos/trunk/event/subscriber.py	(original)
+++ z3/sqlos/trunk/event/subscriber.py	Fri Oct  8 18:34:35 2004
@@ -12,6 +12,7 @@
 
 from sqlos.interfaces import ISQLObject
 from sqlos.event.interfaces import expired
+from sqlobject import SQLObjectNotFound
 
 def sqlobjectModifiedSubscriber(event):
     obj = event.object
@@ -39,4 +40,8 @@
     # Expire object values and re-sync from database. The transaction
     # has either been aborted or committed.
     obj.expire()
-    obj.sync()
+    try:
+        obj.sync()
+    except SQLObjectNotFound:
+        # Object may have been deleted?
+        pass


More information about the z3-checkins mailing list