Skip to content

Handle existing directory gracefully instead of crashing#93

Open
Vedant43hh wants to merge 1 commit into
Shpota:mainfrom
Vedant43hh:fix-directory-exists-crash
Open

Handle existing directory gracefully instead of crashing#93
Vedant43hh wants to merge 1 commit into
Shpota:mainfrom
Vedant43hh:fix-directory-exists-crash

Conversation

@Vedant43hh

Copy link
Copy Markdown

Fixes #90

Added a directory existence check before creating the repository directory.

Previously the script crashed with:

FileExistsError: [WinError 183]

Now the script exits gracefully with a clear error message explaining that the directory already exists and suggesting corrective action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Directory already exists crash

2 participants