summaryrefslogtreecommitdiff
path: root/service/pixelated/resources/mail_resource.py
diff options
context:
space:
mode:
Diffstat (limited to 'service/pixelated/resources/mail_resource.py')
-rw-r--r--service/pixelated/resources/mail_resource.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/pixelated/resources/mail_resource.py b/service/pixelated/resources/mail_resource.py
index 40d6aa89..15ca1939 100644
--- a/service/pixelated/resources/mail_resource.py
+++ b/service/pixelated/resources/mail_resource.py
@@ -3,6 +3,7 @@ from pixelated.resources import respond_json, respond_json_deferred
from twisted.web.resource import Resource
from twisted.web.server import NOT_DONE_YET
+
class MailTags(Resource):
isLeaf = True
@@ -33,8 +34,7 @@ class Mail(Resource):
def render_GET(self, request):
d = self._mail_service.mail(self._mail_id)
- response = lambda mail: respond_json_deferred(mail.as_dict(), request)
- d.addCallback(response)
+ d.addCallback(lambda mail: respond_json_deferred(mail.as_dict(), request))
return NOT_DONE_YET