Skip to content

Commit 63768e4

Browse files
authored
fix: Fall back to full download in case of Artifactory error (#45)
1 parent 1af2a0f commit 63768e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

conda_metadata_app/pages/main_page.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,9 @@ def repodata_patches(channel_name: str) -> dict[str, Any]:
299299
package_name = f"{channel_name}-repodata-patches"
300300
data = anaconda_api_data(package_name, channel_name)
301301
most_recent = sorted(data, key=lambda x: x["attrs"]["timestamp"], reverse=True)[0]
302-
filename, conda = conda_reader_for_url(f"https:{most_recent['download_url']}")
302+
filename, conda = conda_reader_for_url(
303+
f"https:{most_recent['download_url']}", fall_back_to_full_download=True
304+
)
303305

304306
patches = {}
305307
with closing(conda):

0 commit comments

Comments
 (0)