From c266490ee40d435e65f90a43312ebe8fb396d320 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 6 Jan 2025 14:19:16 +0100 Subject: [PATCH] fix: Try fix api_log test error in unfortunate timing scenarios --- freqtrade/rpc/rpc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/freqtrade/rpc/rpc.py b/freqtrade/rpc/rpc.py index a890eeb21f7..a24661397f0 100644 --- a/freqtrade/rpc/rpc.py +++ b/freqtrade/rpc/rpc.py @@ -1283,6 +1283,7 @@ def _rpc_get_logs(limit: int | None) -> dict[str, Any]: r.message + ("\n" + r.exc_text if r.exc_text else ""), ] for r in buffer + if hasattr(r, "message") ] # Log format: