aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mypy.ini3
-rw-r--r--qc_app/dbinsert.py4
2 files changed, 5 insertions, 2 deletions
diff --git a/mypy.ini b/mypy.ini
index 1f63c34..b0c3b7b 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -22,4 +22,7 @@ ignore_missing_imports = True
ignore_missing_imports = True
[mypy-requests.*]
+ignore_missing_imports = True
+
+[mypy-MySQLdb.*]
ignore_missing_imports = True \ No newline at end of file
diff --git a/qc_app/dbinsert.py b/qc_app/dbinsert.py
index fac546b..09dd3e1 100644
--- a/qc_app/dbinsert.py
+++ b/qc_app/dbinsert.py
@@ -103,7 +103,7 @@ def insert_data():
return (f"Would insert '{species}' data in '{filetype}' file "
f"'{filepath}' into the database with the dataset "
f"'{datasetid}' and genechip '{genechipid}'.")
- except ValueError as ve:
- msg = "::".join(ve.args)
+ except ValueError as verr:
+ msg = "::".join(verr.args)
return render_error(f"Invalid value: {msg}")
return render_error(f"File '{filename}' no longer exists.")