aboutsummaryrefslogtreecommitdiff
path: root/bh20sequploader
diff options
context:
space:
mode:
Diffstat (limited to 'bh20sequploader')
-rw-r--r--bh20sequploader/main.py8
1 files changed, 4 insertions, 4 deletions
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)