diff --git a/src/ytdl_sub/utils/file_handler.py b/src/ytdl_sub/utils/file_handler.py index 4cbf41f6..fdc8eabd 100644 --- a/src/ytdl_sub/utils/file_handler.py +++ b/src/ytdl_sub/utils/file_handler.py @@ -361,7 +361,7 @@ class FileHandler: """ try: shutil.move(src=src_file_path, dst=dst_file_path) - except OSError as os_error_exc: + except OSError: # Invalid cross-device link # Can happen from using os.rename under the hood, which requires the two file on the # same filesystem. Work around it by copying and deleting the file