WindowsSelectorEventLoopPolicy import caused error under linux -> try to import

This commit is contained in:
avollkopf 2022-03-04 17:45:28 +01:00
parent b1dc05b209
commit 2370b6d124

View file

@ -1,7 +1,10 @@
import asyncio
import sys
from asyncio import set_event_loop_policy, WindowsSelectorEventLoopPolicy
try:
from asyncio import set_event_loop_policy, WindowsSelectorEventLoopPolicy
except ImportError:
pass
import json
from voluptuous.schema_builder import message
from cbpi.api.dataclasses import NotificationType