From aad579f05dbfc7bacf11419a8d5ec48697471b24 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Thu, 28 May 2020 09:52:22 -0500 Subject: Uploader: validate metadata first (it is faster) --- bh20sequploader/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bh20sequploader') diff --git a/bh20sequploader/main.py b/bh20sequploader/main.py index 10d1029..0d463f7 100644 --- a/bh20sequploader/main.py +++ b/bh20sequploader/main.py @@ -26,16 +26,16 @@ def main(): api = arvados.api(host=ARVADOS_API_HOST, token=ARVADOS_API_TOKEN, insecure=True) + if not qc_metadata(args.metadata.name): + print("Failed metadata qc") + exit(1) + try: target = qc_fasta(args.sequence) except ValueError as e: print(e) exit(1) - if not qc_metadata(args.metadata.name): - print("Failed metadata qc") - exit(1) - if args.validate: print("Valid") exit(0) -- cgit v1.2.3