Drop support for Python 3.7

* Drop support for Python 3.7, closes #616
* Bumped versions on a whole lot of GitHub Actions
This commit is contained in:
Simon Willison 2024-01-30 18:37:38 -08:00 committed by GitHub
commit 70cc0c91ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 24 additions and 29 deletions

View file

@ -457,8 +457,7 @@ class Database:
fn_name, arity, fn, **dict(kwargs, deterministic=True)
)
registered = True
except (sqlite3.NotSupportedError, TypeError):
# TypeError is Python 3.7 "function takes at most 3 arguments"
except sqlite3.NotSupportedError:
pass
if not registered:
self.conn.create_function(fn_name, arity, fn, **kwargs)