Protect 3p lib imports + update requirements
This commit is contained in:
1 parent
716a824323
commit
1aba5984d2
3 files changed
+12
-5
No files matched your search
@@ -13,8 +13,14 @@ from typing import (
|
||||
Any, Optional, List, Dict, Set, Tuple, TypedDict, Iterable, NoReturn, TYPE_CHECKING
|
||||
)
|
||||
|
||||
from PIL import Image
|
||||
import pystray
|
||||
try:
|
||||
from PIL import Image
|
||||
except ModuleNotFoundError as exc:
|
||||
raise ImportError("You have to run 'pip install Pillow' first") from exc
|
||||
try:
|
||||
import pystray
|
||||
except ModuleNotFoundError as exc:
|
||||
raise ImportError("You have to run 'pip install pystray' first") from exc
|
||||
|
||||
from version import __version__
|
||||
from constants import FORMATTER, WS_TOPICS_LIMIT, MAX_WEBSOCKETS, State
|
||||
|
||||
Reference in new issue
Block a user