aboutsummaryrefslogtreecommitdiffstats
path: root/paste/store.py
diff options
context:
space:
mode:
Diffstat (limited to 'paste/store.py')
-rw-r--r--paste/store.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/paste/store.py b/paste/store.py
index 82e66c0..ec51a7f 100644
--- a/paste/store.py
+++ b/paste/store.py
@@ -54,4 +54,5 @@ def head(conn: Connection, name: str):
def delete(conn: Connection, name: str):
with conn:
- conn.execute("DELETE FROM link WHERE name_hash = DATA_HASH(?)", (name,))
+ cur = conn.execute("DELETE FROM link WHERE name_hash = DATA_HASH(?)", (name,))
+ return cur.rowcount == 1