Capture exceptions in send_msg calls

This commit is contained in:
Matthias
2022-09-20 18:09:14 +02:00
parent 0bd6ad55a1
commit 0c01b23cba
2 changed files with 17 additions and 0 deletions

View File

@@ -78,6 +78,8 @@ class RPCManager:
mod.send_msg(msg)
except NotImplementedError:
logger.error(f"Message type '{msg['type']}' not implemented by handler {mod.name}.")
except Exception:
logger.exception('Exception occurred within RPC module %s', mod.name)
def process_msg_queue(self, queue: deque) -> None:
"""