Skip to content

Commit

Permalink
make json more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
dperl-dls committed Jun 18, 2024
1 parent 5c7416e commit f1a16f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ophyd/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f1a16f9

Please sign in to comment.