Skip to content

Commit a7a2ad0

Browse files
committed
misc: Fix helper script
1 parent 891c9ec commit a7a2ad0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/typos_json_to_gha.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ def main():
1313
)
1414

1515
for line in sys.stdin:
16-
error_code = 1
1716
# Grab the JSON data coming from typos from stdin
1817
data = json.loads(line.rstrip())
1918

2019
if data['type'] == 'binary_file':
2120
continue
22-
2321
try:
2422
# Calculate the end column and format the correction
2523
suggestions = ', '.join(data['corrections'])
@@ -38,6 +36,8 @@ def main():
3836
print('Caught unhandled exception')
3937
print(f'{data}')
4038
print(f'{e}')
39+
finally:
40+
error_code = 1
4141

4242
return error_code
4343

0 commit comments

Comments
 (0)