diff options
Diffstat (limited to 'sphinx/cmd/quickstart.py')
-rw-r--r-- | sphinx/cmd/quickstart.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/cmd/quickstart.py b/sphinx/cmd/quickstart.py index 62c551c14..9cfd670a9 100644 --- a/sphinx/cmd/quickstart.py +++ b/sphinx/cmd/quickstart.py @@ -228,7 +228,7 @@ def ask_user(d: Dict[str, Any]) -> None: d['path'] = do_prompt(__('Please enter a new root path (or just Enter to exit)'), '', is_path_or_empty) if not d['path']: - sys.exit(1) + raise SystemExit(1) if 'sep' not in d: print() @@ -605,4 +605,4 @@ def main(argv: List[str] = sys.argv[1:]) -> int: if __name__ == '__main__': - sys.exit(main(sys.argv[1:])) + raise SystemExit(main()) |