2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-29 05:03:34 +08:00

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

View File

@ -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()