Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions django_mako_plus/router/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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)) ]],
Expand Down