#53 catching GError on SystemBus()

This commit is contained in:
sezanzeb 2021-03-07 10:30:40 +01:00 committed by sezanzeb
parent f885b119f0
commit e7442dde83

View File

@ -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)