Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions grayskull/base/pkg_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ def is_pkg_available(pkg_name: str, channel: str = "conda-forge") -> bool:
:param channel: Anaconda channel
:return: Return True if the package is present on the given channel
"""
response = requests.get(
url=f"https://anaconda.org/{channel}/{pkg_name}/files", allow_redirects=False
)
try:
response = requests.get(
url=f"https://anaconda.org/{channel}/{pkg_name}/files",
allow_redirects=False,
)
except requests.exceptions.SSLError:
return False
return response.status_code == 200


Expand Down
Loading