about summary refs log tree commit diff
path: root/uploader/scripts
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi <fredmanglis@gmail.com>2026-11-06 14:16:46 -0600
committerFrederick Muriuki Muriithi <fredmanglis@gmail.com>2026-11-06 14:17:10 -0600
commit966f48fd5529082d2bdeecd6c8fe8e7a48b0c885 (patch)
tree96592d867b87d69c2ba8a3c415f54f620e14b7fd /uploader/scripts
parent3a7ee65224db66aac63ea7f76a538e5948d64625 (diff)
downloadgn-uploader-966f48fd5529082d2bdeecd6c8fe8e7a48b0c885.tar.gz
Check for errors before exit.
If errors exist, exit with "GENERALERROR" category rather than with
the "OK" category.
Diffstat (limited to 'uploader/scripts')
-rw-r--r--uploader/scripts/genotypes/preprocess_csv_collect_info.py3
1 files changed, 2 insertions, 1 deletions
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