fix(bot): 🐛 Do not try to use winloop.
This commit is contained in:
@@ -40,14 +40,7 @@ def flush_process():
|
|||||||
print("Flushing messages with uvloop.")
|
print("Flushing messages with uvloop.")
|
||||||
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
print("Flushing messages with default loop.")
|
||||||
import winloop
|
|
||||||
|
|
||||||
winloop.install()
|
|
||||||
print("Flushing messages with winloop.")
|
|
||||||
|
|
||||||
except ImportError:
|
|
||||||
print("Could not find winloop nor uvloop for messages flushing.")
|
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
asyncio.run(loop())
|
asyncio.run(loop())
|
||||||
|
|||||||
Reference in New Issue
Block a user