Add parameter check

This commit is contained in:
howie6879 2018-01-24 08:17:55 +08:00
parent 040c85a43b
commit 6c0fbef843

View File

@ -155,7 +155,8 @@ class Sanic:
return handler
else:
raise ValueError(
'Required parameter `request` missing in the {0}() route?'.format(
'Required parameter `request` missing'
'in the {0}() route?'.format(
handler.__name__))
return response