mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-09 17:07:43 +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 sys
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue