diff --git a/rattail_tempmon/client.py b/rattail_tempmon/client.py index 3e59b5c..e5bcd65 100644 --- a/rattail_tempmon/client.py +++ b/rattail_tempmon/client.py @@ -89,7 +89,11 @@ class TempmonClient(Daemon): # make sure we show as being online if not client.online: client.online = True - session.commit() + try: + session.commit() + except: + log.exception("failed to commit changes to database") + raise finally: session.close()