From 60133fc47ff10f28b44bfec6af349b0acffd7099 Mon Sep 17 00:00:00 2001 From: Goffi Date: Tue, 6 Oct 2026 22:54:51 +0200 Subject: [PATCH] plugin XEP-0384: log error when getting the OMEMO session manager fails --- libervia/backend/plugins/plugin_xep_0384.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libervia/backend/plugins/plugin_xep_0384.py b/libervia/backend/plugins/plugin_xep_0384.py index d57da00c..f290b196 100644 --- a/libervia/backend/plugins/plugin_xep_0384.py +++ b/libervia/backend/plugins/plugin_xep_0384.py @@ -1684,8 +1684,13 @@ class OMEMO: """ @param client: The client. """ - - ensureDeferred(self.get_session_manager(client.profile)) + d = ensureDeferred(self.get_session_manager(client.profile)) + d.addErrback( + lambda f: log.error( + f"can't get the OMEMO session manager for {client.profile}", + exc_info=f.value, + ) + ) async def cmd_omemo_reset( self, client: SatXMPPClient, mess_data: MessageDataLegacy