From 09fbaedb16be20c4e6ee219f1c9ae5f044cc03a6 Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Thu, 14 Nov 2024 08:19:26 +0100 Subject: [PATCH] frappy.client: catch all errors in handleError callback put try/execpt around handleError callback Change-Id: I3d97f085556665189da848e52a7148248f55eb0e Reviewed-on: https://forge.frm2.tum.de/review/c/secop/frappy/+/34955 Tested-by: Jenkins Automated Tests Reviewed-by: Markus Zolliker --- frappy/client/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frappy/client/__init__.py b/frappy/client/__init__.py index 0fb720f..f8833b9 100644 --- a/frappy/client/__init__.py +++ b/frappy/client/__init__.py @@ -481,7 +481,10 @@ class SecopClient(ProxyClient): continue except Exception as e: e.args = (f'error handling SECoP message {reply!r}: {e}',) - self.callback(None, 'handleError', e) + try: + self.callback(None, 'handleError', e) + except Exception: + pass continue try: key = action, ident