Switch to new uvloop.install() for setting event loop policy

This commit is contained in:
Ben 2019-03-19 02:43:25 +00:00
parent dda702ca54
commit 74026c9e9f

View File

@ -24,7 +24,7 @@ from Houdini.Data import db
try: try:
import uvloop import uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy()) uvloop.install()
except ImportError: except ImportError:
uvloop = None uvloop = None