1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-13 09:16:14 +01:00

Raise a RuntimeError when GitStore.project couldn't determine project from the current branch

This commit is contained in:
Daniel Mach 2023-07-27 13:33:23 +02:00
parent 7943b55a6e
commit 5a2ebda567

View File

@ -72,7 +72,7 @@ class GitStore:
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")
return self._project
@project.setter