From 29b99a338e2ac64dcc01235cbfc0a994b6880ac9 Mon Sep 17 00:00:00 2001 From: Richard Kiss Date: Wed, 17 May 2017 12:10:40 -0700 Subject: [PATCH] ModuleNotFoundError (new in 3.6) => ImportError. --- magneticod/magneticod/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magneticod/magneticod/__main__.py b/magneticod/magneticod/__main__.py index f17c2ee..02a724b 100644 --- a/magneticod/magneticod/__main__.py +++ b/magneticod/magneticod/__main__.py @@ -42,7 +42,7 @@ def main(): import uvloop asyncio.set_event_loop_policy(uvloop.EventLoopPolicy()) logging.info("using uvloop") - except ModuleNotFoundError: + except ImportError: pass # noinspection PyBroadException