diff --git a/django_mako_plus/router/resolver.py b/django_mako_plus/router/resolver.py index 492af95d..c32e7ae8 100755 --- a/django_mako_plus/router/resolver.py +++ b/django_mako_plus/router/resolver.py @@ -193,7 +193,7 @@ def resolve(self, path): match.kwargs.pop('dmp_app', None) or self.dmp.options['DEFAULT_APP'], match.kwargs.pop('dmp_page', None) or self.dmp.options['DEFAULT_PAGE'], match.kwargs.pop('dmp_function', None) or 'process_request', - match.kwargs.pop('dmp_urlparams', '').strip(), + (match.kwargs.pop('dmp_urlparams', None) or '').strip(), ) if VERSION < (2, 2): return ResolverMatch( @@ -218,7 +218,7 @@ def resolve(self, path): # this is a hack, but the resolver error page doesn't give other options. # the sad face is to catch the dev's attention in Django's printout msg = "◉︵◉ Pattern matched, but discovery failed: {}".format(vdne) - log.debug("%s %s", match.url_name, msg) + log.exception("%s %s", match.url_name, msg) raise Resolver404({ # this is a bit convoluted, but it makes the PatternStub work with Django 1.x and 2.x 'tried': [[ PatternStub(match.url_name, msg, PatternStub(match.url_name, msg, None)) ]],