Skip to content

Commit

Permalink
Merge pull request #247 from bogdant36/CTX-5430-fix
Browse files Browse the repository at this point in the history
CTX-5430: Fix for sync crashing if default venv path doesn't exist.
  • Loading branch information
dule1322 authored Aug 13, 2024
2 parents adc43cc + 97c183b commit fcc44ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion coretex/configuration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ def configMigration(configPath: Path) -> None:
}).save()

configPath.unlink()
shutil.rmtree(DEFAULT_VENV_PATH)
if DEFAULT_VENV_PATH.exists():
shutil.rmtree(DEFAULT_VENV_PATH)


def _syncConfigWithEnv() -> None:
Expand Down

0 comments on commit fcc44ba

Please sign in to comment.