plugin XEP-0384: continue workflow and log error in case of issue in self.__prepare_for_profile:
an exception while preparing profile should not stop the message to be propagated
This commit is contained in:
parent
39576b806f
commit
224cffde8d
1 changed files with 6 additions and 1 deletions
|
|
@ -1591,7 +1591,12 @@ class OMEMO:
|
|||
None
|
||||
))
|
||||
|
||||
session_manager = await self.__prepare_for_profile(cast(str, client.profile))
|
||||
try:
|
||||
session_manager = await self.__prepare_for_profile(cast(str, client.profile))
|
||||
except Exception as e:
|
||||
log.error(f"error while preparing profile for {client.profile}: {e}")
|
||||
# we don't want to block the workflow
|
||||
return True
|
||||
|
||||
if twomemo_encrypted_elt is not None:
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue