From 8d4a07bd3e17619f005ec929292699b9782ed75a Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 19 Feb 2023 20:01:18 -0500 Subject: [PATCH] Remove unused os_error_exc variable --- src/ytdl_sub/utils/file_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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