Remove unused os_error_exc variable
This commit is contained in:
parent
801b389ce7
commit
8d4a07bd3e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue