someone-in-the-world Claude Sonnet 4.6 commited on
Commit
34c8646
·
1 Parent(s): 0597d39

Log temp file cleanup failures instead of silently swallowing them

Browse files
Files changed (1) hide show
  1. 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
- pass
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):