ModuleNotFoundError (new in 3.6) => ImportError.
This commit is contained in:
parent
3e4eba740c
commit
29b99a338e
@ -42,7 +42,7 @@ def main():
|
|||||||
import uvloop
|
import uvloop
|
||||||
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
||||||
logging.info("using uvloop")
|
logging.info("using uvloop")
|
||||||
except ModuleNotFoundError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# noinspection PyBroadException
|
# noinspection PyBroadException
|
||||||
|
Loading…
Reference in New Issue
Block a user