Skip to content

Commit 6fe2988

Browse files
author
Hakan Fouren
committed
Use sys.exit as in rest of code
1 parent a8caddc commit 6fe2988

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gitlab/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def _parse_value(v):
133133
def main():
134134
if "--version" in sys.argv:
135135
print(gitlab.__version__)
136-
exit(0)
136+
sys.exit(0)
137137

138138
parser = _get_base_parser(add_help=False)
139139

@@ -149,7 +149,7 @@ def main():
149149
except gitlab.config.ConfigError as e:
150150
if "--help" in sys.argv or "-h" in sys.argv:
151151
parser.print_help()
152-
exit(0)
152+
sys.exit(0)
153153
sys.exit(e)
154154
cli_module = importlib.import_module('gitlab.v%s.cli' % config.api_version)
155155

0 commit comments

Comments
 (0)