Spaces:
Running
Running
zhimin-z
commited on
Commit
·
8f25a52
1
Parent(s):
089139c
refine
Browse files
msr.py
CHANGED
|
@@ -142,7 +142,7 @@ def download_file(url):
|
|
| 142 |
# 404 means the file doesn't exist in GHArchive - skip without retry
|
| 143 |
if e.response.status_code == 404:
|
| 144 |
if attempt == 0: # Only log once, not for each retry
|
| 145 |
-
print(f"
|
| 146 |
return False
|
| 147 |
|
| 148 |
# Other HTTP errors (5xx, etc.) should be retried
|
|
|
|
| 142 |
# 404 means the file doesn't exist in GHArchive - skip without retry
|
| 143 |
if e.response.status_code == 404:
|
| 144 |
if attempt == 0: # Only log once, not for each retry
|
| 145 |
+
print(f" ⚠ {filename}: Not available (404) - skipping")
|
| 146 |
return False
|
| 147 |
|
| 148 |
# Other HTTP errors (5xx, etc.) should be retried
|