Skip to content

Commit 250472f

Browse files
sys.exit(1) on error
1 parent d7d697c commit 250472f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Doc/tools/check-html-ids.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
try:
2-
from compression import gzip
3-
except ImportError:
4-
import gzip
1+
from compression import gzip
52
import concurrent.futures
63
from pathlib import Path
74
import html.parser
@@ -178,6 +175,7 @@ def verbose_print(*args, **kwargs):
178175
)
179176
if args.exclude_file:
180177
print(f'Alternatively, add them to {args.exclude_file}.')
178+
sys.exit(1)
181179

182180

183181
if __name__ == '__main__':

0 commit comments

Comments
 (0)