From 82f97cce0d3edb96b8e2a81935ec94752cda98a9 Mon Sep 17 00:00:00 2001 From: Zergling_man Date: Sun, 27 Mar 2022 20:19:48 +1100 Subject: [PATCH] ha... ha... One day I'll get good at testing --- main/converters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/converters.py b/main/converters.py index d8eb514..1f3e19d 100644 --- a/main/converters.py +++ b/main/converters.py @@ -15,7 +15,7 @@ class RedirectConverter: regex='.*' def to_python(self,value): try: r=Redirect.objects.get(match=value) - except Page.DoesNotExist: raise ValueError(f'No such redirect {value}') + except Redirect.DoesNotExist: raise ValueError(f'No such redirect {value}') if not r: raise ValueError(f'No such redirect {value}') return r def to_url(self,value):