diff --git a/bin/human_exports_qc.py b/bin/human_exports_qc.py index 225fb49..fa4552b 100755 --- a/bin/human_exports_qc.py +++ b/bin/human_exports_qc.py @@ -53,7 +53,13 @@ def qc_item(item, prefixes = [], index = None): qc_item(child, [*prefixes, name], subindex) def qc_data (cursor, prefix): - qc = db.get_info('qc', cursor)[0] + qc = db.get_info('qc', cursor) + if qc is not None: + qc = qc[0] + else: + print("No QC data found"); + return + #print("QC", qc) index = 0 for item in qc["results"]: