From 17f2b1d21b6fa4c743aea1cfea697f787d4e5f58 Mon Sep 17 00:00:00 2001 From: Pete R Jemian Date: Thu, 21 Nov 2024 10:52:05 -0600 Subject: [PATCH] MNT ignore PersistentDict errors when building the docs --- src/instrument/utils/controls_setup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/instrument/utils/controls_setup.py b/src/instrument/utils/controls_setup.py index 1f5de69..282b3f1 100644 --- a/src/instrument/utils/controls_setup.py +++ b/src/instrument/utils/controls_setup.py @@ -67,8 +67,11 @@ def connect_scan_id_pv(RE, pv: str = None): RE.scan_id_source = epics_scan_id_source scan_id_epics.wait_for_connection() - RE.md["scan_id_pv"] = scan_id_epics.pvname - RE.md["scan_id"] = scan_id_epics.get() # set scan_id from EPICS + try: + RE.md["scan_id_pv"] = scan_id_epics.pvname + RE.md["scan_id"] = scan_id_epics.get() # set scan_id from EPICS + except TypeError: + pass # Ignore PersistentDict errors that only raise when making the docs def set_control_layer(control_layer: str = DEFAULT_CONTROL_LAYER):