forked from M-Labs/artiq
gui/experiments: improve resilience to broken/outdated artiq_gui.pyon
This commit is contained in:
parent
dbc0a89903
commit
223657fa63
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue