From 966f48fd5529082d2bdeecd6c8fe8e7a48b0c885 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 6 Nov 2026 14:16:46 -0600 Subject: Check for errors before exit. If errors exist, exit with "GENERALERROR" category rather than with the "OK" category. --- uploader/scripts/genotypes/preprocess_csv_collect_info.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'uploader/scripts') diff --git a/uploader/scripts/genotypes/preprocess_csv_collect_info.py b/uploader/scripts/genotypes/preprocess_csv_collect_info.py index db2fbad..c32e5cd 100644 --- a/uploader/scripts/genotypes/preprocess_csv_collect_info.py +++ b/uploader/scripts/genotypes/preprocess_csv_collect_info.py @@ -506,7 +506,8 @@ if __name__ == "__main__": "transposed": args.is_transposed }) print(json.dumps(asdict(stats))) - return SysExit.OK + return ( + SysExit.OK if len(stats.errors)==0 else SysExit.GENERALERROR) except FileNotFoundError as _fnf: logger.error(", ".join(str(arg) for arg in _fnf.args), exc_info=True) return SysExit.FILENOTFOUND -- cgit 1.4.1