From b0ef0d205a9e39a7d3f609627b82b865f19cd734 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 24 Oct 2015 09:57:42 +0800 Subject: [PATCH] gui/datasets: do not crash when a display data is unavailable --- artiq/gui/datasets.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/artiq/gui/datasets.py b/artiq/gui/datasets.py index 4af8a59ac..1c51dc387 100644 --- a/artiq/gui/datasets.py +++ b/artiq/gui/datasets.py @@ -100,8 +100,10 @@ class DatasetsDock(dockarea.Dock): return self.table_model def update_display_data(self, dsp): - dsp.update_data({k: self.table_model.backing_store[k][1] - for k in dsp.data_sources()}) + filtered_data = {k: self.table_model.backing_store[k][1] + for k in dsp.data_sources() + if k in self.table_model.backing_store} + dsp.update_data(filtered_data) def on_mod(self, mod): if mod["action"] == "init":