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 5ef5475
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 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,10 @@ 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.warning(err.args[0])
return self._supported_tags

@classmethod
Expand Down

0 comments on commit 5ef5475

Please sign in to comment.