mirror of
https://github.com/simonw/datasette.git
synced 2026-06-15 13:36:58 +02:00
From 409 warnings down to 52 warnings.
By closing unclosed database connections. Refs #2614
This commit is contained in:
parent
9c164572d3
commit
f02484c3de
14 changed files with 75 additions and 27 deletions
|
|
@ -34,7 +34,9 @@ def inner_html(soup):
|
|||
|
||||
def has_load_extension():
|
||||
conn = sqlite3.connect(":memory:")
|
||||
return hasattr(conn, "enable_load_extension")
|
||||
result = hasattr(conn, "enable_load_extension")
|
||||
conn.close()
|
||||
return result
|
||||
|
||||
|
||||
def cookie_was_deleted(response, cookie):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue