diff MoinMoin/security/antispam.py @ 1762:ca08a865c597

antispam: catch xmlrpclib.Fault to avoid trouble with saving pages when MoinMaster wiki fails internally (ported from 1.5-798)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 30 Jan 2007 22:16:06 +0100
parents d9077dcd38e1
children bb2e053067fb
line wrap: on
line diff
--- a/MoinMoin/security/antispam.py	Tue Jan 30 22:12:52 2007 +0100
+++ b/MoinMoin/security/antispam.py	Tue Jan 30 22:16:06 2007 +0100
@@ -142,6 +142,13 @@
                 # update cache to wait before the next try
                 failure.update("")
 
+            except (xmlrpclib.Fault, ), err:
+                # Log the error
+                # TODO: check if this does not fill the logs!
+                dprint('Fault on moinmaster: %s' % str(err))
+                # update cache to wait before the next try
+                failure.update("")
+
             except Error, err:
                 # In case of Error, we log the error and use the local
                 # BadContent copy.