pass all exception (raised by data errors in logs)
This commit is contained in:
@@ -67,8 +67,9 @@ def mariadb_insert_logs(csv_entries):
|
||||
|
||||
try:
|
||||
sql_cursor.execute(inserts_sql, values)
|
||||
except mariadb.OperationalError:
|
||||
except Exception:
|
||||
print('something happened') # TODO proper error handling
|
||||
pass
|
||||
|
||||
sql_connection.commit()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user