Skip to content

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/proxito/views/decorators.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def inner_view( # noqa
6565
if project is None:
6666
# Get a slug from the request if it can't be found in the URL
6767
if not project_slug:
68-
project_slug = request.host_project_slug
68+
project_slug = getattr(request, 'host_project_slug', None)
6969
log.debug(
7070
'Inserting project slug from request slug=[%s]',
7171
project_slug

0 commit comments

Comments
 (0)