bugfix for old (or different) scans
CI for debye_bec / test (push) Successful in 1m2s

This commit is contained in:
x01da
2026-07-01 09:14:48 +02:00
parent 215d6a90ce
commit df7da10455
@@ -178,8 +178,11 @@ class DataViewer(BECWidget, QWidget):
scan_data = self.client.history[-n].metadata["bec"] # type: ignore
scan_number = scan_data["scan_number"]
scan_name = scan_data["scan_name"]
comment = scan_data["metadata"]["user_metadata"]["comment"]
sample_name = scan_data["metadata"]["user_metadata"]["sample_name"]
if "metadata" in scan_data:
comment = scan_data["metadata"]["user_metadata"]["comment"]
sample_name = scan_data["metadata"]["user_metadata"]["sample_name"]
else:
comment, sample_name = "", ""
status = scan_data["status"]
self.history.append(
{