ModuleNotFoundError (new in 3.6) => ImportError.

This commit is contained in:
Richard Kiss 2017-05-17 12:10:40 -07:00
parent 3e4eba740c
commit 29b99a338e

View File

@ -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