Skip to content

Commit

Permalink
gui/experiments: improve resilience to broken/outdated artiq_gui.pyon
Browse files Browse the repository at this point in the history
sbourdeauducq committed Mar 18, 2016
1 parent dbc0a89 commit 223657f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion artiq/gui/experiments.py
Original file line number Diff line number Diff line change
@@ -412,7 +412,14 @@ def open_experiment(self, expurl):
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()

0 comments on commit 223657f

Please sign in to comment.