Add parameter check

This commit is contained in:
howie6879 2018-01-24 08:11:47 +08:00
parent f20b854dd2
commit 040c85a43b

View File

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