mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 01:14:31 +02:00
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:
parent
ff57a97482
commit
70cc0c91ab
6 changed files with 24 additions and 29 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue