Skip to content

Commit

Permalink
Raise a RuntimeError when GitStore.project couldn't determine project…
Browse files Browse the repository at this point in the history
… from the current branch
  • Loading branch information
dmach committed Jul 28, 2023
1 parent 7943b55 commit 5a2ebda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osc/git_scm/store.py
Expand Up @@ -72,7 +72,7 @@ def project(self):
if branch == "factory":
self._project = "openSUSE:Factory"
else:
print(f"ERROR: Couldn't map git branch '{branch}' to a project", file=sys.stderr)
raise RuntimeError(f"Couldn't map git branch '{branch}' to a project")

Check warning on line 75 in osc/git_scm/store.py

View check run for this annotation

Codecov / codecov/patch

osc/git_scm/store.py#L75

Added line #L75 was not covered by tests
return self._project

@project.setter
Expand Down

0 comments on commit 5a2ebda

Please sign in to comment.