summaryrefslogtreecommitdiff
path: root/gitlab/v4/cli.py
diff options
context:
space:
mode:
authorJohn L. Villalovos <john@sodarock.com>2022-06-03 09:03:22 -0700
committerJohn L. Villalovos <john@sodarock.com>2022-06-03 09:03:22 -0700
commit0afcc3eca4798801ff3635b05b871e025078ef31 (patch)
tree63482175593bc093854aace2b0601daec98e14bd /gitlab/v4/cli.py
parent00aec96ed0b60720362c6642b416567ff39aef09 (diff)
downloadgitlab-0afcc3eca4798801ff3635b05b871e025078ef31.tar.gz
chore: enable 'consider-using-sys-exit' pylint check
Enable the 'consider-using-sys-exit' pylint check and fix errors raised.
Diffstat (limited to 'gitlab/v4/cli.py')
-rw-r--r--gitlab/v4/cli.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/v4/cli.py b/gitlab/v4/cli.py
index b396e46..ecf79c8 100644
--- a/gitlab/v4/cli.py
+++ b/gitlab/v4/cli.py
@@ -394,7 +394,7 @@ class YAMLPrinter:
print(yaml.safe_dump(d, default_flow_style=False))
except ImportError:
- exit(
+ sys.exit(
"PyYaml is not installed.\n"
"Install it with `pip install PyYaml` "
"to use the yaml output feature"
@@ -415,7 +415,7 @@ class YAMLPrinter:
)
)
except ImportError:
- exit(
+ sys.exit(
"PyYaml is not installed.\n"
"Install it with `pip install PyYaml` "
"to use the yaml output feature"