Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
a71a1874 by wurstsalat at 2024-04-21T11:09:17+02:00
fix: ServiceDiscoveryWindow: Catch RuntimeError when starting without connection
Fixes #11809
- - - - -
1 changed file:
- gajim/gtk/application.py
Changes:
=====================================
gajim/gtk/application.py
=====================================
@@ -77,6 +77,7 @@
from gajim.gtk.const import ONLINE_ACCOUNT_ACTIONS
from gajim.gtk.dialogs import ConfirmationDialog
from gajim.gtk.dialogs import DialogButton
+from gajim.gtk.dialogs import ErrorDialog
from gajim.gtk.dialogs import ShortcutsWindow
from gajim.gtk.discovery import ServiceDiscoveryWindow
from gajim.gtk.start_chat import StartChatDialog
@@ -654,8 +655,8 @@ def _on_services_action(_action: Gio.SimpleAction,
try:
# Object will add itself to the window dict
ServiceDiscoveryWindow(account, address_entry=True)
- except GajimGeneralException:
- pass
+ except (GajimGeneralException, RuntimeError) as e:
+ ErrorDialog(_('Error'), str(e))
@staticmethod
def _on_create_groupchat_action(_action: Gio.SimpleAction,
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/a71a18749da81952eedb37d9c2325a70b445a670
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/a71a18749da81952eedb37d9c2325a70b445a670
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]