mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 15:14:38 +01:00
Gio.bus_get_sync may return None when the DBus service is not available (see libratbag/piper#2). In addition to this, the service may time out when it is being started in which case Gio.DBusProxy.new_sync will raise a GLib.Gerror. This commit checks for both scenarios and raises a RatbagdDBusUnavailable exception when either one of them occurs. This will in turn be caught in for example Piper to properly deal with this.