Skip to content

Commit f4c4ef9

Browse files
committed
Improve code semantics
1 parent a859450 commit f4c4ef9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build_docs.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
HERE = Path(__file__).resolve().parent
5050

5151
try:
52-
from os import EX_OK, EX_SOFTWARE
52+
from os import EX_OK, EX_SOFTWARE as EX_FAILURE
5353
except ImportError:
54-
EX_OK, EX_SOFTWARE = 0, 1
54+
EX_OK, EX_FAILURE = 0, 1
5555

5656
try:
5757
import sentry_sdk
@@ -1094,4 +1094,4 @@ def main() -> bool:
10941094

10951095
if __name__ == "__main__":
10961096
all_built_successfully = main()
1097-
sys.exit(EX_OK if all_built_successfully else EX_SOFTWARE)
1097+
sys.exit(EX_OK if all_built_successfully else EX_FAILURE)

0 commit comments

Comments
 (0)