refactor(errors): replace silent exception handling in core packages

This commit is contained in:
somew1nd committed 2026-09-01 15:54:49 -07:00
1 parent 584bb2d09c
commit 47e7cb6620
21 files changed
+132 -58

No files matched your search

+2 -1
View File
@@ -703,7 +703,8 @@ def cleanup_video_segments(segments: list[Path], keep_path: Path | None = None)
segment.unlink()
if segment.parent.exists() and not any(segment.parent.iterdir()):
segment.parent.rmdir()
except Exception:
except OSError:
# Best-effort cleanup of temporary segments; leftovers are harmless.
pass