summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2016-02-19 10:47:15 +0100
committerFolker Bernitt <fbernitt@thoughtworks.com>2016-02-19 10:47:15 +0100
commita6202acbb44162e867f107a9cf262d95a41e4347 (patch)
tree1bf9eaa15d6fa4daf692706dff7305f36266baa4
parent25c0d507088e231274aef8c5fb1e86d3371f28ae (diff)
Fixed arity of two event callbacks
-rw-r--r--service/pixelated/application.py2
-rw-r--r--service/pixelated/resources/mails_resource.py2
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)