Spaces:
Running on Zero
Running on Zero
Commit ·
34c8646
1
Parent(s): 0597d39
Log temp file cleanup failures instead of silently swallowing them
Browse files- logging_utils.py +2 -2
logging_utils.py
CHANGED
|
@@ -93,8 +93,8 @@ def _upload_parquet(api, repo_id, table, path_in_repo):
|
|
| 93 |
if tmp_path:
|
| 94 |
try:
|
| 95 |
os.unlink(tmp_path)
|
| 96 |
-
except Exception:
|
| 97 |
-
|
| 98 |
|
| 99 |
|
| 100 |
def _make_path(now, uid):
|
|
|
|
| 93 |
if tmp_path:
|
| 94 |
try:
|
| 95 |
os.unlink(tmp_path)
|
| 96 |
+
except Exception as e:
|
| 97 |
+
print(f"[log] failed to delete temp file {tmp_path}: {e}")
|
| 98 |
|
| 99 |
|
| 100 |
def _make_path(now, uid):
|