commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r9611 - trunk/gnue-forms/src


From: reinhard
Subject: [gnue] r9611 - trunk/gnue-forms/src
Date: Wed, 23 May 2007 09:29:18 -0500 (CDT)

Author: reinhard
Date: 2007-05-23 09:29:17 -0500 (Wed, 23 May 2007)
New Revision: 9611

Modified:
   trunk/gnue-forms/src/GFForm.py
Log:
Ignore exceptions that happen in requery after an exception has happened in
commit, otherwise the original exception will never be visible.


Modified: trunk/gnue-forms/src/GFForm.py
===================================================================
--- trunk/gnue-forms/src/GFForm.py      2007-05-23 14:17:12 UTC (rev 9610)
+++ trunk/gnue-forms/src/GFForm.py      2007-05-23 14:29:17 UTC (rev 9611)
@@ -1467,8 +1467,15 @@
             # Make sure the block is in consistent state again; this has to
             # be done in any case if the processCommit was successful, even
             # if the connection commit failed!
-            for block in self._logic._blockList:            
-                block.requery(False)
+            try:
+                for block in self._logic._blockList:            
+                    block.requery(False)
+            except:
+                # Ignore exceptions happening in requery so they don't
+                # obfuscate the original exception that happened in commit.
+                pass
+            # FIXME: We have to think more about the question what's the right
+            # way to act when an exception happenend in the COMMIT.
             raise
 
         for block in self._logic._blockList:            





reply via email to

[Prev in Thread] Current Thread [Next in Thread]