middleware: don't fail on unnamed URLs (#11319)

This commit is contained in:
Frédéric Péters 2016-06-13 13:43:06 +02:00
parent 0b141113d7
commit 33dded157a
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class PassiveAuthenticationMiddleware(object):
def process_view(self, request, view_func, view_args, view_kwargs):
# Skip mellon views
if request.resolver_match.url_name.startswith('mellon_'):
if request.resolver_match.url_name and request.resolver_match.url_name.startswith('mellon_'):
return
if not any(utils.get_idps()):
return