mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-25 00:18:17 +01:00
WindowsSelectorEventLoopPolicy import caused error under linux -> try to import
This commit is contained in:
parent
b1dc05b209
commit
2370b6d124
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,10 @@
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import sys
|
import sys
|
||||||
from asyncio import set_event_loop_policy, WindowsSelectorEventLoopPolicy
|
try:
|
||||||
|
from asyncio import set_event_loop_policy, WindowsSelectorEventLoopPolicy
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
import json
|
import json
|
||||||
from voluptuous.schema_builder import message
|
from voluptuous.schema_builder import message
|
||||||
from cbpi.api.dataclasses import NotificationType
|
from cbpi.api.dataclasses import NotificationType
|
||||||
|
|
Loading…
Reference in a new issue