Handle errors that may occur during thumbnail deletion #16
Labels
consistency
An inconsistency that should be (re-)aligned
error handling
More helpful and transparent error handling/logging
We already catch and log any
OSError
during video file deletion in theStorageFileController.remove_files
method:videbo/src/videbo/storage/file_controller.py
Lines 381 to 386 in e7b53e0
However the
.remove_thumbnails
method currently simply swallows any errors that may occur, whenPath.unlink
is called on a thumbnail path. Sincegather
already collects exceptions, we should simply log them there.The text was updated successfully, but these errors were encountered: