Verified Commit 3c886346 authored by Martin Petráček's avatar Martin Petráček
Browse files

catch database error - caused crash sometimes

parent b411eea0
......@@ -258,13 +258,13 @@ def main():
else:
logging.warn("Unknown event type")
con.commit()
except KeyboardInterrupt:
exit_gracefully()
except IOError as e:
if e.errno != errno.EINTR:
raise
except sqlite3.DatabaseError as e:
logging.warn("Database error: "+str(e))
if __name__ == "__main__":
main()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment