aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-08-09 14:20:17 -0500
committerFrederick Muriuki Muriithi2024-08-12 09:47:19 -0500
commit321cb85283dc0a182e86d0ee509cae9ced4e39cd (patch)
treea05a9cbd98f14d9a27139f99ea4b7f6b0daefcee /scripts
parentd29a205d83a3eeba49483cc2f3fd372e461b5a9c (diff)
downloadgn-uploader-321cb85283dc0a182e86d0ee509cae9ced4e39cd.tar.gz
Rename module: Module contains exceptions classes.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/process_rqtl2_bundle.py2
-rw-r--r--scripts/qc_on_rqtl2_bundle.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/process_rqtl2_bundle.py b/scripts/process_rqtl2_bundle.py
index a7e169d..20cfd3b 100644
--- a/scripts/process_rqtl2_bundle.py
+++ b/scripts/process_rqtl2_bundle.py
@@ -13,9 +13,9 @@ from redis import Redis
from functional_tools import take
-import r_qtl.errors as rqe
import r_qtl.r_qtl2 as rqtl2
import r_qtl.r_qtl2_qc as rqc
+import r_qtl.exceptions as rqe
from uploader import jobs
from uploader.db_utils import database_connection
diff --git a/scripts/qc_on_rqtl2_bundle.py b/scripts/qc_on_rqtl2_bundle.py
index 7784c06..fc95d13 100644
--- a/scripts/qc_on_rqtl2_bundle.py
+++ b/scripts/qc_on_rqtl2_bundle.py
@@ -20,9 +20,9 @@ from uploader import jobs
from uploader.db_utils import database_connection
from uploader.check_connections import check_db, check_redis
-from r_qtl import errors as rqe
from r_qtl import r_qtl2 as rqtl2
from r_qtl import r_qtl2_qc as rqc
+from r_qtl import exceptions as rqe
from r_qtl import fileerrors as rqfe
from scripts.process_rqtl2_bundle import parse_job
@@ -105,7 +105,7 @@ def retrieve_errors_with_progress(rconn: Redis,#pylint: disable=[too-many-locals
__update_processed__(value)
rconn.hset(fqjobid, f"{filetype}-linecount", count)
- except rqe.MissingFileError:
+ except rqe.MissingFileException:
fname = cdata.get(filetype)
yield rqfe.MissingFile(filetype, fname, (
f"The file '{fname}' does not exist in the bundle despite it being "