Skip to content

Commit

Permalink
dashboard: make state restore failure on experiment opening non-fatal
Browse files Browse the repository at this point in the history
sbourdeauducq committed Sep 21, 2016
1 parent 122d48d commit 638bbec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion artiq/dashboard/experiments.py
Original file line number Diff line number Diff line change
@@ -562,7 +562,12 @@ def open_experiment(self, expurl):
dock.show()
dock.sigClosed.connect(partial(self.on_dock_closed, expurl))
if expurl in self.dock_states:
dock.restore_state(self.dock_states[expurl])
try:
dock.restore_state(self.dock_states[expurl])
except:
logger.warning("Failed to restore dock state when opening "
"experiment %s", expurl,
exc_info=True)
return dock

def on_dock_closed(self, expurl):

0 comments on commit 638bbec

Please sign in to comment.