diff options
author | Jefferson Stachelski <jstachel@thoughtworks.com> | 2015-01-28 15:06:00 -0200 |
---|---|---|
committer | Pixpoa pairing <pixpoapairing@pixelated-project.org> | 2015-01-29 14:55:22 -0200 |
commit | a484020944f7e89200f6b0d86e72084f0dec5491 (patch) | |
tree | 5636f06a1e5c52e018b678837e74969ea28760ad /service | |
parent | 4ac714acfd3192a397028f1260c5929e80ef15b5 (diff) |
#249 removed unecessary return
Diffstat (limited to 'service')
-rw-r--r-- | service/pixelated/resources/mails_resource.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |