From 2d6171e8c40fd2596bdbe5d0dc5f56055ec67d38 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 21 Sep 2016 19:23:06 +0800 Subject: [PATCH] dashboard: make state restore failure on experiment opening non-fatal --- artiq/dashboard/experiments.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/artiq/dashboard/experiments.py b/artiq/dashboard/experiments.py index 3d01ece16..7172700ce 100644 --- a/artiq/dashboard/experiments.py +++ b/artiq/dashboard/experiments.py @@ -562,7 +562,12 @@ class ExperimentManager: dock.show() dock.sigClosed.connect(partial(self.on_dock_closed, expurl)) if expurl in self.dock_states: - dock.restore_state(self.dock_states[expurl]) + try: + dock.restore_state(self.dock_states[expurl]) + except: + logger.warning("Failed to restore dock state when opening " + "experiment %s", expurl, + exc_info=True) return dock def on_dock_closed(self, expurl):