Skip to content

Commit

Permalink
IMPROVEMENT: setup.py pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
amilcarlucas committed Jun 12, 2024
1 parent 24168af commit 65f0e5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@
try:
shutil.copytree(TEMPLATES_SRC_DIR, TEMPLATES_DST_DIR)
print("Directory tree copied successfully.")
except FileExistsError as e:
except FileExistsError:
print(f"The destination directory '{TEMPLATES_DST_DIR}' already exists and cannot be overwritten.")
except PermissionError as e:
except PermissionError:
print(f"Permission denied when trying to copy '{TEMPLATES_SRC_DIR}' to '{TEMPLATES_DST_DIR}'. Please check your permissions.")
except Exception as e: # pylint: disable=broad-except
print(f"An unexpected error occurred while copying the directory tree: {e}")
Expand Down

0 comments on commit 65f0e5c

Please sign in to comment.