From 8173faba300d2a0974ff91c9f0886a35c141f2ea Mon Sep 17 00:00:00 2001 From: Ellen Marie Dash Date: Tue, 24 Sep 2019 21:54:24 -0400 Subject: [PATCH] Use sys.exit() instead of exit(). --- bork/builder.py | 2 +- bork/cli.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bork/builder.py b/bork/builder.py index 13be553..b5cded3 100644 --- a/bork/builder.py +++ b/bork/builder.py @@ -66,7 +66,7 @@ def zipapp(): if 'metadata' not in config or 'name' not in config['metadata']: print("The [metadata] section of setup.cfg needs the 'name' key set.", file=sys.stderr) - exit(1) + sys.exit(1) name = config['metadata']['name'] diff --git a/bork/cli.py b/bork/cli.py index 882d1df..f6e6141 100644 --- a/bork/cli.py +++ b/bork/cli.py @@ -68,4 +68,4 @@ def main(): # NOTE: Catching something as general as Exception should be okay here. if verbose: raise err - exit("bork: error: {}".format(str(err))) + sys.exit("bork: error: {}".format(str(err)))