mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-26 11:48:27 +08:00
dashboard: make state restore failure on experiment opening non-fatal
This commit is contained in:
parent
122d48d2d5
commit
638bbeca48
@ -562,7 +562,12 @@ class ExperimentManager:
|
|||||||
dock.show()
|
dock.show()
|
||||||
dock.sigClosed.connect(partial(self.on_dock_closed, expurl))
|
dock.sigClosed.connect(partial(self.on_dock_closed, expurl))
|
||||||
if expurl in self.dock_states:
|
if expurl in self.dock_states:
|
||||||
|
try:
|
||||||
dock.restore_state(self.dock_states[expurl])
|
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
|
return dock
|
||||||
|
|
||||||
def on_dock_closed(self, expurl):
|
def on_dock_closed(self, expurl):
|
||||||
|
Loading…
Reference in New Issue
Block a user