-
-
Notifications
You must be signed in to change notification settings - Fork 121
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
If the table doesn't exist it should still return self
, not []
:
sqlite-utils/sqlite_utils/db.py
Lines 1676 to 1683 in ee469e3
def delete_where(self, where=None, where_args=None): | |
if not self.exists(): | |
return [] | |
sql = "delete from [{}]".format(self.name) | |
if where is not None: | |
sql += " where " + where | |
self.db.execute(sql, where_args or []) | |
return self |
Spotted with mypy
while working on #312.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working