diff --git a/rattail_tempmon/client.py b/rattail_tempmon/client.py index 4add356..78dd518 100644 --- a/rattail_tempmon/client.py +++ b/rattail_tempmon/client.py @@ -92,9 +92,8 @@ class TempmonClient(Daemon): try: session.commit() except: - # TODO: pretty sure we need to add a retry for this.. - log.exception("failed to commit changes to database") - raise + log.exception("Failed to read/record temperature data (but will keep trying)") + session.rollback() finally: session.close()