mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Prefer `raise SystemExit to sys.exit`
This commit is contained in:
@@ -1,4 +1,2 @@
|
||||
import sys
|
||||
|
||||
# Fail module import in a catastrophic way
|
||||
sys.exit(1)
|
||||
raise SystemExit(1)
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
import sys
|
||||
|
||||
# Fail module import in a catastrophic way
|
||||
sys.exit(1)
|
||||
raise SystemExit(1)
|
||||
|
||||
Reference in New Issue
Block a user