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 27, 2023
1 parent 56c85b8 commit 6108bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osc/git_scm/store.py
Original file line number Diff line number Diff line change
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 6108bc9

Please sign in to comment.