forked from M-Labs/artiq
1
0
Fork 0

gui/experiments: improve resilience to broken/outdated artiq_gui.pyon

This commit is contained in:
Sebastien Bourdeauducq 2016-03-18 13:04:51 +08:00
parent dbc0a89903
commit 223657fa63
1 changed files with 8 additions and 1 deletions

View File

@ -412,6 +412,13 @@ class ExperimentManager:
dock = self.open_experiments[expurl]
self.main_window.centralWidget().setActiveSubWindow(dock)
return dock
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)