forked from M-Labs/artiq
gui: log error and bail out on artiq_gui.pyon write failure (#360)
This commit is contained in:
parent
dc2c19f08f
commit
6011444789
@ -74,5 +74,10 @@ class StateManager(TaskObject):
|
|||||||
while True:
|
while True:
|
||||||
await asyncio.sleep(self.autosave_period)
|
await asyncio.sleep(self.autosave_period)
|
||||||
self.save()
|
self.save()
|
||||||
|
except asyncio.CancelledError:
|
||||||
|
pass
|
||||||
|
except:
|
||||||
|
logger.error("Uncaught exception attempting to save state",
|
||||||
|
exc_info=True)
|
||||||
finally:
|
finally:
|
||||||
self.save()
|
self.save()
|
||||||
|
Loading…
Reference in New Issue
Block a user