correct keyword in args
correct bad copy-paste to not change this plugin behavior
This commit is contained in:
parent
7d5b72cde1
commit
d666670c94
|
@ -90,7 +90,7 @@ 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 not ((keyword and argspec.keywords) or keyword in argspec.args):
|
||||
if keyword not in argspec.args:
|
||||
return callback
|
||||
|
||||
def wrapper(*args, **kwargs):
|
||||
|
|
Loading…
Reference in New Issue
Block a user