Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion vcp_management/models/vcp_repository_branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,16 @@ def process_rules(self):
def _download_code(self):
self.ensure_one()
local_path = self.local_path
os.makedirs(local_path, exist_ok=True)
try:
os.makedirs(local_path, exist_ok=True)
except PermissionError as err:
raise ValidationError(
_(
"Unable to create a folder in '%(local_path)s'.",
local_path=local_path,
)
) from err

try:
repo = git.Repo(local_path)
for remote in repo.remotes:
Expand Down
Loading