initializer: Fixup bus exception handling

self.on_bus_error assumes that the exception is a dbus.DBusException
This commit is contained in:
Alessandro Astone
2025-11-12 23:33:47 +01:00
parent f0b470b8c9
commit 781b3babd8

View File

@@ -427,8 +427,10 @@ def remote_init_client(args):
"system_type": self.sysType.get_active_text()
}
initializer.Init(params, reply_handler=self.on_reply, error_handler=self.on_bus_error)
except Exception as e:
except dbus.DBusException as e:
self.on_bus_error(e)
except Exception as e:
self.draw(f"{e}\n")
GLib.set_prgname("Waydroid")
win = WaydroidInitWindow()