From c4e727214b09f27b3f093329a946bd15619c69e1 Mon Sep 17 00:00:00 2001 From: Alex Resnick Date: Thu, 23 Jan 2025 14:54:08 -0600 Subject: [PATCH] Fix vendor dep file name --- vendor-update/vendor-update.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vendor-update/vendor-update.py b/vendor-update/vendor-update.py index aceae5f..9bf5813 100644 --- a/vendor-update/vendor-update.py +++ b/vendor-update/vendor-update.py @@ -145,8 +145,10 @@ def compareVersions(item1: str, item2: str): url = new_vendor.get("path", "") if not url.startswith("http"): url = f"{VENDOR_DEP_MARKETPLACE_URL}/{url}" - new_file = os.path.basename(urlparse(url).path) new_file_data = loadFileFromUrl(url) + if new_file_data is None: + continue + new_file = new_file_data.get("fileName", os.path.basename(urlparse(url).path)) with _dir.joinpath(new_file).open(mode="w", encoding="utf-8") as f: json.dump(new_file_data, f, indent=4) if new_file != file.name: