changeset 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 9dc115f468e4
children 4030e9635495
files MoinMoin/security/antispam.py
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
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.