We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 891c9ec commit a7a2ad0Copy full SHA for a7a2ad0
1 file changed
scripts/typos_json_to_gha.py
@@ -13,13 +13,11 @@ def main():
13
)
14
15
for line in sys.stdin:
16
- error_code = 1
17
# Grab the JSON data coming from typos from stdin
18
data = json.loads(line.rstrip())
19
20
if data['type'] == 'binary_file':
21
continue
22
-
23
try:
24
# Calculate the end column and format the correction
25
suggestions = ', '.join(data['corrections'])
@@ -38,6 +36,8 @@ def main():
38
36
print('Caught unhandled exception')
39
37
print(f'{data}')
40
print(f'{e}')
+ finally:
+ error_code = 1
41
42
return error_code
43
0 commit comments