Skip to content

Commit fa6ae2b

Browse files
committed
Use drop table if exists
1 parent 4940755 commit fa6ae2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlite_utils/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ def supports_on_conflict(self) -> bool:
713713
except Exception:
714714
self._supports_on_conflict = False
715715
finally:
716-
self.conn.execute("drop table {}".format(table_name))
716+
self.conn.execute("drop table if exists {}".format(table_name))
717717
return self._supports_on_conflict
718718

719719
@property

0 commit comments

Comments
 (0)