From d1d0e7c969d2b61b3ddb88270bb007c274ad1a10 Mon Sep 17 00:00:00 2001 From: Emma Nora Theuer Date: Mon, 30 Dec 2024 03:39:07 +0100 Subject: [PATCH] Add type annotations --- src/wallman_systray.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wallman_systray.py b/src/wallman_systray.py index 18bed22..a2ce6af 100644 --- a/src/wallman_systray.py +++ b/src/wallman_systray.py @@ -1,4 +1,4 @@ -from os import getenv, chdir +from os import chdir import logging # Use logger that is also in wallman_lib logger = logging.getLogger("wallman") @@ -36,7 +36,7 @@ def on_quit(icon, item, shutdown_scheduler): chdir("/etc/wallman/icons/") try: - icon_image = Image.open("systrayIcon.jpg") + icon_image: Image.Image = Image.open("systrayIcon.jpg") except FileNotFoundError: - logger.error("~/.config/wallman/systrayIcon.jpg has not been found, wallman will launch without a systray.") - print("~/.config/wallman/systrayIcon.jpg has not been found, wallman will launch without a systray.") + logger.error("/etc/wallman/icons/systrayIcon.jpg has not been found, wallman will launch without a systray.") + print("ERROR: /etc/wallman/icons/systrayIcon.jpg has not been found, wallman will launch without a systray.")