diff --git a/lib/galaxy/webapps/galaxy/api/__init__.py b/lib/galaxy/webapps/galaxy/api/__init__.py index 9bcd7894e92a..45733a06954f 100644 --- a/lib/galaxy/webapps/galaxy/api/__init__.py +++ b/lib/galaxy/webapps/galaxy/api/__init__.py @@ -198,7 +198,9 @@ def base(self) -> str: @property def host(self) -> str: - return str(self.__request.client.host) + client = self.__request.client + assert client is not None + return str(client.host) class GalaxyASGIResponse(GalaxyAbstractResponse):