diff --git a/src/poetry/utils/env.py b/src/poetry/utils/env.py index 3499c16c37d..1a310a4d52c 100644 --- a/src/poetry/utils/env.py +++ b/src/poetry/utils/env.py @@ -4,6 +4,7 @@ import hashlib import itertools import json +import logging import os import platform import re @@ -52,6 +53,7 @@ from cleo.io.io import IO from poetry.core.version.markers import BaseMarker +logger = logging.getLogger(__name__) P = TypeVar("P", bound=Poetry) @@ -1344,8 +1346,11 @@ def paths(self) -> dict[str, str]: @property def supported_tags(self) -> list[Tag]: if self._supported_tags is None: - self._supported_tags = self.get_supported_tags() - + try: + self._supported_tags = self.get_supported_tags() + except NotImplementedError as err: + logger.debug(err.args[0]) + self._supported_tags = [] return self._supported_tags @classmethod