Skip to content

Commit a495d40

Browse files
Jigsawcopybara-github
authored andcommitted
Exit with nonzero status if any validations fail in process_polis_data.py
GitOrigin-RevId: 7b91b4c077a635ba6cf179a967158aaa7339d1a9
1 parent b8218bf commit a495d40

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/process_polis_data.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,7 @@ def getargs():
124124
moderated_comments = moderated_comments.rename(columns={'comment-body': 'comment_text'})
125125
moderated_comments.to_csv(args.output_file, index=False)
126126

127+
# Exit with non-zero error code if any validations failed
128+
if failed_validations > 0:
129+
exit(1)
130+

0 commit comments

Comments
 (0)