From b5419fc745e3e89c4e44c80e9266b16a60dc3cd7 Mon Sep 17 00:00:00 2001 From: Alex Myers Date: Sat, 17 Feb 2024 10:16:49 -0600 Subject: [PATCH] REMOVE: force skipping github API and fallback to cloning --- tools/reckless | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/reckless b/tools/reckless index 40635a7ad763..cf94d6e0940a 100755 --- a/tools/reckless +++ b/tools/reckless @@ -474,6 +474,9 @@ def source_element_from_repo_api(member: dict): def populate_github_repo(url: str) -> list: + # FIXME: TESTING ONLY, REMOVE! + with tempfile.NamedTemporaryFile() as tmp: + raise HTTPError(url, 403, 'simulated ratelimit', {}, tmp) # FIXME: This probably contains leftover cruft. repo = url.split('/') while '' in repo: