mirror of
https://github.com/gogcom/galaxy-integrations-python-api.git
synced 2026-04-20 14:16:54 -04:00
SDK-2951: Use WindowsProactorEventLoopPolicy on Windows
This commit is contained in:
@@ -894,6 +894,9 @@ def create_and_run_plugin(plugin_class, argv):
|
||||
await plugin.run()
|
||||
|
||||
try:
|
||||
if sys.platform == "win32":
|
||||
asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())
|
||||
|
||||
asyncio.run(coroutine())
|
||||
except Exception:
|
||||
logging.exception("Error while running plugin")
|
||||
|
||||
Reference in New Issue
Block a user