aboutsummaryrefslogtreecommitdiff
path: root/bh20sequploader/qc_metadata.py
diff options
context:
space:
mode:
authorAdam Novak2020-04-09 15:57:37 -0700
committerAdam Novak2020-04-09 15:58:56 -0700
commitd9a24cfb81a028fcd901abd08fc02b9140d5e78b (patch)
treeb08ac8d559a263381703ce14c06e144e6f48912c /bh20sequploader/qc_metadata.py
parent2cd6623aa0ddfe4e42b2d434e0523773bb3536ef (diff)
parentb1039ff369ee88770e42d1bbbdc402b1181c2aa5 (diff)
downloadbh20-seq-resource-d9a24cfb81a028fcd901abd08fc02b9140d5e78b.tar.gz
bh20-seq-resource-d9a24cfb81a028fcd901abd08fc02b9140d5e78b.tar.lz
bh20-seq-resource-d9a24cfb81a028fcd901abd08fc02b9140d5e78b.zip
Merge remote-tracking branch 'upstream/master' into add-web-ui
Diffstat (limited to 'bh20sequploader/qc_metadata.py')
-rw-r--r--bh20sequploader/qc_metadata.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bh20sequploader/qc_metadata.py b/bh20sequploader/qc_metadata.py
index 78b31b2..ebe4dfc 100644
--- a/bh20sequploader/qc_metadata.py
+++ b/bh20sequploader/qc_metadata.py
@@ -1,6 +1,7 @@
import schema_salad.schema
import logging
import pkg_resources
+import logging
def qc_metadata(metadatafile):
schema_resource = pkg_resources.resource_stream(__name__, "bh20seq-schema.yml")
@@ -17,5 +18,6 @@ def qc_metadata(metadatafile):
try:
doc, metadata = schema_salad.schema.load_and_validate(document_loader, avsc_names, metadatafile, True)
return True
- except:
- return False
+ except Exception as e:
+ logging.warn(e)
+ return False