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 87a227c  account for 3.7 difference
87a227c is described below

commit 87a227c2933d47a21af8bc1e46785ae9057d685c
Author: Daniel Gruno <[email protected]>
AuthorDate: Mon Sep 20 14:41:48 2021 -0500

    account for 3.7 difference
---
 server/endpoints/mbox.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/server/endpoints/mbox.py b/server/endpoints/mbox.py
index cf23641..a12ffd0 100644
--- a/server/endpoints/mbox.py
+++ b/server/endpoints/mbox.py
@@ -24,7 +24,10 @@ import plugins.defuzzer
 import re
 import typing
 import aiohttp.web
-from asyncio.exceptions import CancelledError
+try:
+    from asyncio.exceptions import CancelledError
+except ImportError:  # 3.7 ??
+    from asyncio import CancelledError
 import email.utils as eutils
 import datetime
 

Reply via email to