Commit 5c7d51d8 authored by Bryton Lacquement's avatar Bryton Lacquement 🚪

fixup! Implement the tracing mechanism

This is a fixup for commit 3aded8e0.
parent 07ce3aa2
...@@ -29,7 +29,7 @@ def create_table(table, *values): ...@@ -29,7 +29,7 @@ def create_table(table, *values):
c.execute('INSERT INTO %s VALUES (%s)' % ( c.execute('INSERT INTO %s VALUES (%s)' % (
table, ', '.join(['?'] * len(args))), args) table, ', '.join(['?'] * len(args))), args)
except sqlite3.IntegrityError as e: except sqlite3.IntegrityError as e:
if not e.message.startswith('UNIQUE constraint failed:'): if not str(e).startswith('UNIQUE constraint failed:'):
raise raise
else: else:
conn.commit() conn.commit()
......
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