refactor(errors): replace silent exception handling in core packages
This commit is contained in:
1 parent
584bb2d09c
commit
47e7cb6620
21 files changed
+132
-58
No files matched your search
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user