From 52eb1ba2305da59b1760ff8d805367ba162ba2e7 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 8 Apr 2024 15:43:37 +0300 Subject: Add logging for IntegrityError --- qc_app/upload/rqtl2.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qc_app/upload/rqtl2.py b/qc_app/upload/rqtl2.py index 8b5ac01..66c95b9 100644 --- a/qc_app/upload/rqtl2.py +++ b/qc_app/upload/rqtl2.py @@ -786,6 +786,7 @@ def create_probeset_dataset(species_id: int, population_id: int):#pylint: disabl form.get( "datasetdatascale", "log2")) except mdb.IntegrityError as _ierr: + app.logger.debug("Possible integrity error: %s", traceback.format_exc()) flash(("A dataset with that name already exists. Try selecting " "from list of datasets instead."), errorclasses) -- cgit v1.2.3