Skip to content

Commit 774adf0

Browse files
committed
s-c-p.py: Move requiring Handy version into try: scope (fixes #283)
libhandy is optional, so we don't have to end with traceback.
1 parent e0a09ec commit 774adf0

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- Add <launchable/> into the .appdata.xml file (#269)
44
- Accessiblity improvements (#244)
55
- system-config-printer couldn't be uninstalled vi GNOME Software (#273)
6+
- system-config-printer crashes due missing libhandy (#283)
67
- Use pkg-config or --with-cups-serverbin-dir for finding SERVERBIN (#234)
78

89
1.5.17 changes

system-config-printer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
print ("This is a graphical application and requires DISPLAY to be set.")
4848
sys.exit (1)
4949

50-
# Optional dependency, requires libhandy >= 1.5
51-
gi.require_version('Handy', '1')
5250
try:
51+
# Optional dependency, requires libhandy >= 1.5
52+
gi.require_version('Handy', '1')
5353
from gi.repository import Handy
5454
Handy.init()
5555
# Support GNOME 42 dark mode

0 commit comments

Comments
 (0)