From 48e5d87da804140dd2099e5adb73def053d52858 Mon Sep 17 00:00:00 2001 From: trigg Date: Tue, 7 May 2024 21:48:56 +0100 Subject: [PATCH] - switch exception to importerror --- src/script/arch-update-tray.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script/arch-update-tray.py b/src/script/arch-update-tray.py index edb8702..aad7eac 100755 --- a/src/script/arch-update-tray.py +++ b/src/script/arch-update-tray.py @@ -18,7 +18,7 @@ from gi.repository import Gtk, Gio from gi.repository import AppIndicator3 as ai available_tk_list.append("gtk3") -except Exception: +except ImportError: pass # Test for QT6 availability @@ -28,7 +28,7 @@ from PyQt6.QtWidgets import QApplication, QSystemTrayIcon from PyQt6.QtCore import QFileSystemWatcher available_tk_list.append("qt6") -except Exception: +except ImportError: pass # Create logger