Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shawn Webb
Git Lab
Commits
38a5e4c5
Unverified
Commit
38a5e4c5
authored
Aug 18, 2020
by
Jonah Brüchert
Browse files
Handle git errors
parent
ebf0d80c
Changes
1
Hide whitespace changes
Inline
Side-by-side
lab/__init__.py
View file @
38a5e4c5
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment