Merge pull request #1100 from NyanKiyoshi/master
No longer raising a missing parameter when value is null
This commit is contained in:
commit
ed3bdd3443
|
@ -495,7 +495,7 @@ class Sanic:
|
|||
specific_pattern = '^{}$'.format(pattern)
|
||||
supplied_param = None
|
||||
|
||||
if kwargs.get(name):
|
||||
if name in kwargs:
|
||||
supplied_param = kwargs.get(name)
|
||||
del kwargs[name]
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user