diff --git a/bottle_mongo.py b/bottle_mongo.py index 73e2551..84548ad 100644 --- a/bottle_mongo.py +++ b/bottle_mongo.py @@ -157,7 +157,7 @@ def setup(self, app): def apply(self, callback, context): """Return a decorated route callback.""" - args = inspect.getargspec(context.callback)[0] + args = inspect.getfullargspec(context.callback)[0] # Skip this callback if we don't need to do anything if self.keyword not in args: return callback