From d666670c9482f5c35ed857a47658de3983eb6f4c Mon Sep 17 00:00:00 2001 From: Mageti Date: Thu, 27 Mar 2014 15:10:24 +0100 Subject: [PATCH] correct keyword in args correct bad copy-paste to not change this plugin behavior --- bottle_sqlite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bottle_sqlite.py b/bottle_sqlite.py index 943888e..d37ae28 100755 --- a/bottle_sqlite.py +++ b/bottle_sqlite.py @@ -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):