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


The following commit(s) were added to refs/heads/master by this push:
     new 1651174  tweak to avoid mypy test error
1651174 is described below

commit 16511747ded40624e5ade1f34d9c0921c0f68d0c
Author: Daniel Gruno <[email protected]>
AuthorDate: Mon Sep 20 14:36:09 2021 -0500

    tweak to avoid mypy test error
---
 server/endpoints/mbox.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/endpoints/mbox.py b/server/endpoints/mbox.py
index 392f3e8..cf23641 100644
--- a/server/endpoints/mbox.py
+++ b/server/endpoints/mbox.py
@@ -24,7 +24,7 @@ import plugins.defuzzer
 import re
 import typing
 import aiohttp.web
-import asyncio.exceptions
+from asyncio.exceptions import CancelledError
 import email.utils as eutils
 import datetime
 
@@ -116,7 +116,7 @@ async def process(
         try:
             async with server.streamlock:
                 await 
asyncio.wait_for(response.write(mboxrd_source.encode("utf-8")), timeout=5)
-        except (TimeoutError, RuntimeError, asyncio.exceptions.CancelledError):
+        except (TimeoutError, RuntimeError, CancelledError):
             break  # Writing stream failed, break it off.
     return response
 

Reply via email to