summaryrefslogtreecommitdiffstats
path: root/core/middleware.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/middleware.py')
-rw-r--r--core/middleware.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/middleware.py b/core/middleware.py
index 54cdb11..686d7d5 100644
--- a/core/middleware.py
+++ b/core/middleware.py
@@ -1,6 +1,6 @@
from django import http
from django.conf import settings
-from django.urls import Resolver404, resolve, reverse
+from django.urls import Resolver404, resolve
"""Non-standard django middleware is loaded from this file.
@@ -66,7 +66,7 @@ class SmartAppendSlashMiddleware(object):
def _resolves(url):
try:
# If the URL does not resolve, the function raises a Resolver404 exception (a subclass of Http404)
- match = resolve(url)
+ resolve(url)
# this will ALWAYS be resolved by expopages because it will produce pagenotfound if not the thing asked for
# so handle this in expopages, not in middleware
return True