Skip to content

Commit

Permalink
More error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Secrus committed May 19, 2022
1 parent ccc21fd commit a598b09
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/poetry/utils/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import hashlib
import itertools
import json
import logging
import os
import platform
import re
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a598b09

Please sign in to comment.