You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2020/09/08 18:42:05 UTC

[incubator-ponymail-foal] branch master updated: Simplify

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git


The following commit(s) were added to refs/heads/master by this push:
     new 73dac0e  Simplify
73dac0e is described below

commit 73dac0eec0760d40b9d09282305d01975bd0c43a
Author: Sebb <se...@apache.org>
AuthorDate: Tue Sep 8 19:41:48 2020 +0100

    Simplify
---
 server/endpoints/email.py | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/server/endpoints/email.py b/server/endpoints/email.py
index aed6703..767e17a 100644
--- a/server/endpoints/email.py
+++ b/server/endpoints/email.py
@@ -71,15 +71,12 @@ async def process(
                                     headers=headers, status=200, body=blob
                                 )
                         except Exception as e:
-                            print(e)
+                            print(e) # TODO report error
                 return aiohttp.web.Response(
                     headers={}, status=404, text="Attachment not found"
                 )
 
-        else:
-            return aiohttp.web.Response(headers={}, status=404, text="Email not found")
-    else:
-        return aiohttp.web.Response(headers={}, status=404, text="Email not found")
+    return aiohttp.web.Response(headers={}, status=404, text="Email not found")
 
 
 def register(server: plugins.server.BaseServer):