Add parameter check
This commit is contained in:
parent
040c85a43b
commit
6c0fbef843
|
@ -155,7 +155,8 @@ class Sanic:
|
||||||
return handler
|
return handler
|
||||||
else:
|
else:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
'Required parameter `request` missing in the {0}() route?'.format(
|
'Required parameter `request` missing'
|
||||||
|
'in the {0}() route?'.format(
|
||||||
handler.__name__))
|
handler.__name__))
|
||||||
|
|
||||||
return response
|
return response
|
||||||
|
|
Loading…
Reference in New Issue
Block a user