Unverified Commit 38a5e4c5 authored by Jonah Brüchert's avatar Jonah Brüchert
Browse files

Handle git errors

parent ebf0d80c
......@@ -26,6 +26,8 @@ from lab import (
workflow,
)
from git.exc import GitCommandError
from lab.utils import Utils, LogType
......@@ -76,6 +78,8 @@ def main() -> None:
try:
parser.parse()
except GitCommandError as git_error:
Utils.log(LogType.Error, str(git_error))
except SystemExit:
pass
except: # noqa: E722
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment