Skip to content

Commit

Permalink
Use sys.exit() instead of exit().
Browse files Browse the repository at this point in the history
  • Loading branch information
duckinator committed Sep 25, 2019
1 parent 75ae103 commit 8173fab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bork/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']

Expand Down
2 changes: 1 addition & 1 deletion bork/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

0 comments on commit 8173fab

Please sign in to comment.