From d5833b207185597d63bbc5ff2b0cc0df6df4ab69 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 8 Apr 2024 10:04:38 +0300 Subject: Fix pylint and mypy errors. --- qc_app/upload/rqtl2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qc_app/upload') 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 " -- cgit v1.2.3