changeset 2087:a94187915111

More intelligent xmlrpc error handling.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Sun, 03 Jun 2007 19:40:58 +0200
parents c8bc6df45964
children a99ed13fec1e
files MoinMoin/events/JabberNotification.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/events/JabberNotification.py	Sun Jun 03 16:36:04 2007 +0200
+++ b/MoinMoin/events/JabberNotification.py	Sun Jun 03 19:40:58 2007 +0200
@@ -75,9 +75,9 @@
     for jid in jids:
         # FIXME: for now, stop sending notifications on first error
         try:
-            server.send_notification(jid, msg)
-        except Exception, desc:
-            print "XML RPC error:", desc
+            server.send_notification(request.cfg.secret, jid, msg)
+        except xmlrpclib.Error, err:
+            print _("XML RPC error: "), str(err)
             return (0, _("Notifications not sent"))
         
     return (1, _("Notifications sent OK"))