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
7 changes: 5 additions & 2 deletions sonar/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -1312,8 +1312,11 @@ def update(self, config: types.ObjectJsonRepr) -> None:
except StopIteration:
log.warning("No main branch defined in %s configuration", self)
for branch_name, branch_data in branch_config.items():
branch = branches.Branch.get_object(self, branch_name)
branch.import_config(branch_data)
try:
branch = branches.Branch.get_object(self, branch_name)
branch.import_config(branch_data)
except exceptions.ObjectNotFound:
log.warning("Branch '%s' of %s does not exists, can't update its configuuration", branch_name, str(self))
if "binding" in config:
try:
self.set_devops_binding(config["binding"])
Expand Down