From f1a16f96ca8896e09a476f1d842eb9e435811a64 Mon Sep 17 00:00:00 2001 From: David Perl Date: Tue, 18 Jun 2024 11:27:17 +0100 Subject: [PATCH] make json more robust --- ophyd/status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ophyd/status.py b/ophyd/status.py index 8639ba48e..428eb47cb 100644 --- a/ophyd/status.py +++ b/ophyd/status.py @@ -700,7 +700,7 @@ def __init__(self, device, **kwargs): if device else {"no_device_given": True} ) - self._trace_attributes["kwargs"] = json.dumps(kwargs) + self._trace_attributes["kwargs"] = json.dumps(kwargs, default=repr) def _handle_failure(self): super()._handle_failure()