Skip to content

Commit

Permalink
Fix error handling for file copy in updater
Browse files Browse the repository at this point in the history
  • Loading branch information
Lenochxd committed Nov 9, 2024
1 parent 0da53c7 commit 307ef5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ def update_to_latest_release(tag_name):
# Overwrite other files
try:
shutil.copy2(extracted_path, dest_path)
except PermissionError:
print(f"Permission denied: {dest_path}. Skipping file.")
except (PermissionError, IsADirectoryError) as e:
print(f"Error: {e}. Skipping file: {dest_path}.")
pass
else:
shutil.copy2(extracted_path, dest_path)
Expand Down

0 comments on commit 307ef5f

Please sign in to comment.