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

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
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:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.