mirror of
https://github.com/sezanzeb/input-remapper
synced 2024-11-18 03:25:52 +00:00
#53 catching GError on SystemBus()
This commit is contained in:
parent
f885b119f0
commit
e7442dde83
@ -77,8 +77,8 @@ def get_dbus_interface(fallback=True):
|
|||||||
logger.warning(msg)
|
logger.warning(msg)
|
||||||
return Daemon()
|
return Daemon()
|
||||||
|
|
||||||
bus = SystemBus()
|
|
||||||
try:
|
try:
|
||||||
|
bus = SystemBus()
|
||||||
interface = bus.get(BUS_NAME)
|
interface = bus.get(BUS_NAME)
|
||||||
except GLib.GError as error:
|
except GLib.GError as error:
|
||||||
logger.debug(error)
|
logger.debug(error)
|
||||||
|
Loading…
Reference in New Issue
Block a user