This commit is contained in:
Emma Nora Theuer 2025-02-04 01:05:53 +01:00
parent c274fc4a65
commit 51a7acb765
2 changed files with 3 additions and 3 deletions

View file

@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project] [project]
name = "wallman" name = "wallman"
version = "1.5.1.2" version = "1.5.1.3"
authors = [ authors = [
{name = "Emma Nora Theuer", email = "wallman@entheuer.de"}, {name = "Emma Nora Theuer", email = "wallman@entheuer.de"},
] ]

View file

@ -7,7 +7,7 @@ from apscheduler.schedulers.background import BackgroundScheduler
from apscheduler.triggers.cron import CronTrigger from apscheduler.triggers.cron import CronTrigger
from typing import Dict, List from typing import Dict, List
from wallman.wallman_classes import ConfigError, ConfigGeneral, ConfigFile from wallman_classes import ConfigError, ConfigGeneral, ConfigFile
# Setup Logging. NOTE: Declaration as a global variable is necessary to ensure correct functionality across multiple modules. # Setup Logging. NOTE: Declaration as a global variable is necessary to ensure correct functionality across multiple modules.
global logger global logger
@ -60,7 +60,7 @@ class _ConfigLib:
def _verify_systray_deps(self): def _verify_systray_deps(self):
from importlib import util from importlib import util
if util.find_spec("pystray") is None or util.find_spec("pillow") is None: if util.find_spec("pystray") is None or util.find_spec("PIL") is None:
logger.error("systray is enabled, but dependencies for the systray couldn't be found. Are pystray and pillow installed?") logger.error("systray is enabled, but dependencies for the systray couldn't be found. Are pystray and pillow installed?")
logger.info("Setting self.config_systray to false.") logger.info("Setting self.config_systray to false.")
print("ERROR: systray is enabled, but dependencies for the systray couldn't be found. Are pystray and pillow installed?") print("ERROR: systray is enabled, but dependencies for the systray couldn't be found. Are pystray and pillow installed?")