(url)
| 51 | |
| 52 | |
| 53 | def github_fetch(url): |
| 54 | response = github_get(url) |
| 55 | if response.status != 200: |
| 56 | body = response.data[:200].decode("utf-8", "replace") |
| 57 | raise ValueError(f"Fetch failed (HTTP {response.status}): {url}: {body}") |
| 58 | return response.data |
| 59 | |
| 60 | |
| 61 | def fetch_and_save(url, file_path): |
no test coverage detected