Spaces:
Sleeping
Sleeping
remove proxy
Browse files- scripts/fetch_crs.py +3 -1
scripts/fetch_crs.py
CHANGED
|
@@ -328,11 +328,13 @@ def download_ts(spec_number: str, version: str, ts_dir: Path,
|
|
| 328 |
proxies=PROXIES,
|
| 329 |
timeout=120,
|
| 330 |
)
|
|
|
|
|
|
|
| 331 |
except requests.RequestException as e:
|
| 332 |
return None, f"network error: {e}"
|
| 333 |
|
| 334 |
if not resp.ok:
|
| 335 |
-
return None, f"HTTP {resp.status_code}"
|
| 336 |
|
| 337 |
content = resp.content
|
| 338 |
if not content:
|
|
|
|
| 328 |
proxies=PROXIES,
|
| 329 |
timeout=120,
|
| 330 |
)
|
| 331 |
+
print("hey")
|
| 332 |
+
print(resp.raw)
|
| 333 |
except requests.RequestException as e:
|
| 334 |
return None, f"network error: {e}"
|
| 335 |
|
| 336 |
if not resp.ok:
|
| 337 |
+
return None, f"HTTP {resp.status_code} — {resp.text[:200]}"
|
| 338 |
|
| 339 |
content = resp.content
|
| 340 |
if not content:
|