diff --git a/sanic/blueprints.py b/sanic/blueprints.py index a5942d6a..79a41ab1 100644 --- a/sanic/blueprints.py +++ b/sanic/blueprints.py @@ -98,7 +98,8 @@ class Blueprint: def decorator(handler): if isinstance(handler, MethodType): - raise SanicTypeException("You can`t add a instance method as a blueprint router hander") + raise SanicTypeException("You can`t add a instance " + "method as a blueprint router handler") route = FutureRoute(handler, uri, methods, host, strict_slashes) self.routes.append(route) return handler @@ -127,7 +128,8 @@ class Blueprint: if isinstance(handler, CompositionView): methods = handler.handlers.keys() if isinstance(handler, MethodType): - raise SanicTypeException("You can`t add a instance method as a blueprint router hander") + raise SanicTypeException("You can`t add a " + "instance method as a blueprint router handler") self.route(uri=uri, methods=methods, host=host, strict_slashes=strict_slashes)(handler)