From a6202acbb44162e867f107a9cf262d95a41e4347 Mon Sep 17 00:00:00 2001 From: Folker Bernitt Date: Fri, 19 Feb 2016 10:47:15 +0100 Subject: Fixed arity of two event callbacks --- service/pixelated/application.py | 2 +- service/pixelated/resources/mails_resource.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/service/pixelated/application.py b/service/pixelated/application.py index c7613fc6..98dac541 100644 --- a/service/pixelated/application.py +++ b/service/pixelated/application.py @@ -139,7 +139,7 @@ def initialize(): reactor.stop() def _register_shutdown_on_token_expire(leap_session): - register(events.SOLEDAD_INVALID_AUTH_TOKEN, lambda _: reactor.stop()) + register(events.SOLEDAD_INVALID_AUTH_TOKEN, lambda *unused: reactor.stop()) return leap_session deferred.addCallback(_register_shutdown_on_token_expire) diff --git a/service/pixelated/resources/mails_resource.py b/service/pixelated/resources/mails_resource.py index 61ada60e..1c322d35 100644 --- a/service/pixelated/resources/mails_resource.py +++ b/service/pixelated/resources/mails_resource.py @@ -121,7 +121,7 @@ class MailsResource(BaseResource): def _register_smtp_error_handler(self): - def on_error(event): + def on_error(event, content): delivery_error_mail = InputMail.delivery_error_template(delivery_address=event.content) self._mail_service.mailboxes.inbox.add(delivery_error_mail) -- cgit v1.2.3