aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-04-08 15:43:37 +0300
committerFrederick Muriuki Muriithi2024-04-08 15:43:37 +0300
commit52eb1ba2305da59b1760ff8d805367ba162ba2e7 (patch)
treea719d3cbb8e1104b2e1ba54a6962ded5d5b64e03
parent61362063e93dbacc75d093c6862ddc0aef534198 (diff)
downloadgn-uploader-52eb1ba2305da59b1760ff8d805367ba162ba2e7.tar.gz
Add logging for IntegrityError
-rw-r--r--qc_app/upload/rqtl2.py1
1 files changed, 1 insertions, 0 deletions
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)