This commit is contained in:
Андрей Геннеберг 2023-06-11 02:42:26 +07:00 committed by GitHub
commit cd21a7bc87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
bottle_sqlite.py Executable file → Normal file
View File

@ -111,8 +111,8 @@ class SQLitePlugin(object):
# Test if the original callback accepts a 'db' keyword.
# Ignore it if it does not need a database handle.
argspec = inspect.getargspec(_callback)
if keyword not in argspec.args:
signature = inspect.signature(_callback)
if keyword not in signature.parameters:
return callback
def wrapper(*args, **kwargs):