Skip to content

Commit

Permalink
- switch exception to importerror
Browse files Browse the repository at this point in the history
  • Loading branch information
trigg committed May 7, 2024
1 parent 15eb73c commit 48e5d87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/script/arch-update-tray.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 48e5d87

Please sign in to comment.