Merge pull request #1100 from NyanKiyoshi/master

No longer raising a missing parameter when value is null
This commit is contained in:
Eli Uriegas 2018-01-26 13:56:52 -08:00 committed by GitHub
commit ed3bdd3443
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -495,7 +495,7 @@ class Sanic:
specific_pattern = '^{}$'.format(pattern) specific_pattern = '^{}$'.format(pattern)
supplied_param = None supplied_param = None
if kwargs.get(name): if name in kwargs:
supplied_param = kwargs.get(name) supplied_param = kwargs.get(name)
del kwargs[name] del kwargs[name]
else: else: