Remove unused os_error_exc variable

This commit is contained in:
Joshua M. Boniface 2023-02-19 20:01:18 -05:00
parent 801b389ce7
commit 8d4a07bd3e

View file

@ -361,7 +361,7 @@ class FileHandler:
""" """
try: try:
shutil.move(src=src_file_path, dst=dst_file_path) shutil.move(src=src_file_path, dst=dst_file_path)
except OSError as os_error_exc: except OSError:
# Invalid cross-device link # Invalid cross-device link
# Can happen from using os.rename under the hood, which requires the two file on the # 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 # same filesystem. Work around it by copying and deleting the file