Philipp Hörist pushed to branch master at gajim / gajim
Commits:
d1c80c84 by Philipp Hörist at 2023-05-20T20:39:26+02:00
new: OMEMO: Handle failed session build gracefully
Fixes #11534
- - - - -
1 changed file:
- gajim/common/modules/omemo.py
Changes:
=====================================
gajim/common/modules/omemo.py
=====================================
@@ -550,7 +550,12 @@ def request_bundle(self, jid: str, device_id: int):
jid, device_id, bundle)
return
- self.backend.build_session(jid, bundle)
+ try:
+ self.backend.build_session(jid, bundle)
+ except Exception as error:
+ self._log.error('Building session failed: %s', error)
+ return
+
self._log.info('Session created for: %s', jid)
# TODO: In MUC we should send a groupchat message
self._send_key_transport_message('chat', jid, [device_id])
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/d1c80c84f7b55ec1b43aefff56b22fe24935545d
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/d1c80c84f7b55ec1b43aefff56b22fe24935545d
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits