From 223657fa6351626ba6ce3cdfbea154902ff79e28 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 18 Mar 2016 13:04:51 +0800 Subject: [PATCH] gui/experiments: improve resilience to broken/outdated artiq_gui.pyon --- artiq/gui/experiments.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/artiq/gui/experiments.py b/artiq/gui/experiments.py index 0cb11bbe1..9f1cfe9a4 100644 --- a/artiq/gui/experiments.py +++ b/artiq/gui/experiments.py @@ -412,7 +412,14 @@ class ExperimentManager: dock = self.open_experiments[expurl] self.main_window.centralWidget().setActiveSubWindow(dock) return dock - dock = _ExperimentDock(self, expurl) + try: + dock = _ExperimentDock(self, expurl) + except: + logger.warning("Failed to create experiment dock for %s, " + "attempting to reset arguments", expurl, + exc_info=True) + del self.submission_arguments[expurl] + dock = _ExperimentDock(self, expurl) self.open_experiments[expurl] = dock self.main_window.centralWidget().addSubWindow(dock) dock.show()