fix(controller): enhance error handling in retry_once decorator with traceback logging

This commit is contained in:
2026-06-26 12:48:21 +02:00
committed by wakonig_k
parent 4f3ea9db84
commit 6ca27afa9c
+6 -1
View File
@@ -1,5 +1,6 @@
import functools
import threading
import traceback
from collections import deque
from typing import TYPE_CHECKING, Type
@@ -43,7 +44,11 @@ def retry_once(fcn):
def wrapper(self, *args, **kwargs):
try:
val = fcn(self, *args, **kwargs)
except ControllerCommunicationError:
except Exception:
content = traceback.format_exc()
logger.warning(
f"Communication error occurred. Retrying the command. Traceback: {content}"
)
val = fcn(self, *args, **kwargs)
return val