Handle breaking errors in kiss_and_db.py #38

Merged
W1CDN merged 9 commits from fix-kiss into main 2023-12-13 20:20:59 -06:00
Showing only changes of commit 25bffd9b61 - Show all commits

View File

@ -122,12 +122,12 @@ def main():
# "5 minutes" also works
#conn.execute("DELETE FROM frames WHERE created < DATETIME('now', '"+config['Settings']['keep_time']+"')")
#conn.commit()
except:
except Exception as error:
#print("Error with SQLite!")
logging.error("Error with SQLite!")
logging.error("Error with SQLite!", exc_info = error)
except Exception as error:
#print("Frame could not be parsed.")
logging.error("Frame could not be parsed:", error)
logging.error("Frame could not be parsed:", exc_info = error)
conn.close()