From 556344f0769d4564d3bb122055d0deb1ddea9a02 Mon Sep 17 00:00:00 2001 From: Chase Christiansen Date: Sun, 15 Dec 2024 14:35:19 -0600 Subject: [PATCH] Change translation error to warning to prevent user notifications. Users were being shown a notification when translations didn't load, which includes when a translation was not needed (English). This change stops that. --- yin_yang/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yin_yang/__main__.py b/yin_yang/__main__.py index 1e68056..1d8228a 100755 --- a/yin_yang/__main__.py +++ b/yin_yang/__main__.py @@ -113,7 +113,7 @@ def systray_icon_clicked(reason: QSystemTrayIcon.ActivationReason): raise FileNotFoundError('Error while loading application translations!') except Exception as e: - logger.error(str(e)) + logger.warning(str(e)) print('Error while loading translation. Using default language.') # show systray icon