From 4d997bc65bda16a5980398d42bf9b5663baa9b83 Mon Sep 17 00:00:00 2001 From: blueblots <63152708+blueblots@users.noreply.github.com> Date: Sun, 16 May 2021 16:45:35 +0100 Subject: [PATCH] Fixed error when ripping using `--keep-going` without specifying `--output-directory` Added `os.path.basename()` to `skipped_tracks` comparison in `ImageVerifyTask`. When `OUTPUT_DIRECTORY` is at its default '.' `./` is prepended to the file path of `index.path`, causing the error. Signed-off-by: blueblots <63152708+blueblots@users.noreply.github.com> --- whipper/image/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whipper/image/image.py b/whipper/image/image.py index 7a356b7..bce92b5 100644 --- a/whipper/image/image.py +++ b/whipper/image/image.py @@ -152,7 +152,7 @@ class ImageVerifyTask(task.MultiSeparateTask): except KeyError: logger.debug('Path not found; Checking ' 'if %s is a skipped track', index.path) - if index.path in skipped_tracks: + if os.path.basename(index.path) in skipped_tracks: logger.warning('Missing file %s due to skipped track', index.path) continue