2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-28 20:53:35 +08:00

gui: log error and bail out on artiq_gui.pyon write failure (#360)

This commit is contained in:
Sebastien Bourdeauducq 2016-03-30 01:45:00 +08:00
parent dc2c19f08f
commit 6011444789

View File

@ -74,5 +74,10 @@ class StateManager(TaskObject):
while True:
await asyncio.sleep(self.autosave_period)
self.save()
except asyncio.CancelledError:
pass
except:
logger.error("Uncaught exception attempting to save state",
exc_info=True)
finally:
self.save()