forked from M-Labs/artiq
1
0
Fork 0

dashboard: make state restore failure on experiment opening non-fatal

This commit is contained in:
Sebastien Bourdeauducq 2016-09-21 19:23:06 +08:00
parent 122d48d2d5
commit 638bbeca48
1 changed files with 6 additions and 1 deletions

View File

@ -562,7 +562,12 @@ class ExperimentManager:
dock.show()
dock.sigClosed.connect(partial(self.on_dock_closed, expurl))
if expurl in self.dock_states:
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):