diff options
author | John L. Villalovos <john@sodarock.com> | 2022-06-03 09:03:22 -0700 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2022-06-03 09:03:22 -0700 |
commit | 0afcc3eca4798801ff3635b05b871e025078ef31 (patch) | |
tree | 63482175593bc093854aace2b0601daec98e14bd /gitlab/v4/cli.py | |
parent | 00aec96ed0b60720362c6642b416567ff39aef09 (diff) | |
download | gitlab-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.py | 4 |
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" |