From a484020944f7e89200f6b0d86e72084f0dec5491 Mon Sep 17 00:00:00 2001 From: Jefferson Stachelski Date: Wed, 28 Jan 2015 15:06:00 -0200 Subject: #249 removed unecessary return --- service/pixelated/resources/mails_resource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'service') diff --git a/service/pixelated/resources/mails_resource.py b/service/pixelated/resources/mails_resource.py index 40b29cfc..6cf3df8e 100644 --- a/service/pixelated/resources/mails_resource.py +++ b/service/pixelated/resources/mails_resource.py @@ -110,7 +110,7 @@ class MailsResource(Resource): respond_json_deferred(mail.as_dict(), request) def onError(error): - return respond_json_deferred({'message': _format_exception(error)}, request, status_code=422) + respond_json_deferred({'message': _format_exception(error)}, request, status_code=422) sendDeferred.addCallback(onSuccess) sendDeferred.addErrback(onError) -- cgit v1.2.3