This is an automated email from the ASF dual-hosted git repository. humbedooh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit 80f303ea723287a581c826324798272c8ef6260d Author: Daniel Gruno <[email protected]> AuthorDate: Tue Sep 8 20:49:26 2020 +0200 only catch DBError (doc not found) --- server/endpoints/email.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/endpoints/email.py b/server/endpoints/email.py index 767e17a..5e2336f 100644 --- a/server/endpoints/email.py +++ b/server/endpoints/email.py @@ -21,6 +21,7 @@ import plugins.server import plugins.session import plugins.mbox +import plugins.database import aiohttp.web import plugins.aaa import base64 @@ -70,8 +71,8 @@ async def process( return aiohttp.web.Response( headers=headers, status=200, body=blob ) - except Exception as e: - print(e) # TODO report error + except plugins.database.DBError: + pass # attachment not found return aiohttp.web.Response( headers={}, status=404, text="Attachment not found" )
