diff --git a/src/palace/manager/search/service.py b/src/palace/manager/search/service.py index 418483c684..6f9aec3b27 100644 --- a/src/palace/manager/search/service.py +++ b/src/palace/manager/search/service.py @@ -340,10 +340,12 @@ def write_pointer_set(self, revision: SearchSchemaRevision) -> None: def read_pointer(self) -> str | None: try: - result = self._client.indices.get_alias(name=self.read_pointer_name()) + result: dict[str, Any] = self._client.indices.get_alias( + name=self.read_pointer_name() + ) for name in result.keys(): if name.startswith(f"{self.base_revision_name}-"): - return name # type: ignore[no-any-return] + return name return None except NotFoundError: return None