Skip to content

Commit

Permalink
gui: log error and bail out on artiq_gui.pyon write failure (#360)
Browse files Browse the repository at this point in the history
sbourdeauducq committed Mar 29, 2016
1 parent 7cff497 commit b64cea0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions artiq/gui/state.py
Original file line number Diff line number Diff line change
@@ -74,5 +74,10 @@ async def _do(self):
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()

0 comments on commit b64cea0

Please sign in to comment.