aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qc_app/upload/rqtl2.py4
-rw-r--r--scripts/qc_on_rqtl2_bundle.py1
2 files changed, 2 insertions, 3 deletions
diff --git a/qc_app/upload/rqtl2.py b/qc_app/upload/rqtl2.py
index 876f17c..04bfa5b 100644
--- a/qc_app/upload/rqtl2.py
+++ b/qc_app/upload/rqtl2.py
@@ -653,7 +653,7 @@ def create_probeset_dataset(species_id: int, population_id: int):#pylint: disabl
"""Create a new probeset dataset."""
errorclasses = "alert-error error-rqtl2 error-rqtl2-create-probeset-dataset"
with database_connection(app.config["SQL_URI"]) as conn:
- def __thunk__():
+ def __thunk__():#pylint: disable=[too-many-return-statements]
form = request.form
summary_page = redirect(url_for("upload.rqtl2.select_dataset_info",
species_id=species_id,
@@ -694,7 +694,7 @@ def create_probeset_dataset(species_id: int, population_id: int):#pylint: disabl
"from list of datasets instead."),
errorclasses)
return summary_page
- except Exception as _exc:
+ except Exception as _exc:# pylint: disable=[broad-except]
app.logger.debug("Error creating ProbeSet dataset: %s",
traceback.format_exc())
flash(("There was a problem creating your dataset. Please try "
diff --git a/scripts/qc_on_rqtl2_bundle.py b/scripts/qc_on_rqtl2_bundle.py
index 7e77104..deef8fe 100644
--- a/scripts/qc_on_rqtl2_bundle.py
+++ b/scripts/qc_on_rqtl2_bundle.py
@@ -16,7 +16,6 @@ from quality_control.errors import InvalidValue
from quality_control.checks import decimal_points_error
from qc_app import jobs
-from qc_app.db_utils import database_connection
from qc_app.check_connections import check_db, check_redis
from r_qtl import errors as rqe