Skip to content

Commit daf0d1e

Browse files
committed
Add the forgotten 'not' in the if-condition
1 parent 1afe3ad commit daf0d1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/core/middleware.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def process_request(self, request):
6969
# Support ports during local dev
7070
public_domain in host or public_domain in full_host
7171
):
72-
if Project.objects.filter(slug=subdomain).exists():
72+
if not Project.objects.filter(slug=subdomain).exists():
7373
raise Http404(_('Project not found'))
7474
request.subdomain = True
7575
request.slug = subdomain

0 commit comments

Comments
 (0)