1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-11-29 07:49:52 +01:00

Introduce GitObsRuntimeError exception and use it where appropriate

This commit is contained in:
2025-10-09 09:54:18 +02:00
parent 4fddb4568a
commit 1488f3b873
5 changed files with 11 additions and 3 deletions

View File

@@ -146,7 +146,7 @@ class PullRequestCreateCommand(osc.commandline_git.GitObsCommand):
message = message.strip()
if not message:
raise RuntimeError("Aborting operation due to empty title and description.")
raise gitea_api.GitObsRuntimeError("Aborting operation due to empty title and description.")
parts = re.split(r"\n\n", message, 1)
if len(parts) == 1: