diff options
author | Frederick Muriuki Muriithi | 2022-07-07 14:33:01 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-07-07 14:33:01 +0300 |
commit | 665dd38d6be4587d1902c46dd8e3663cf42a5a18 (patch) | |
tree | d7bf0080aad861942bffba626d7c1d0d22d667da | |
parent | 854c39174b8803e43c718c167f33d3700bcbfd64 (diff) | |
download | gn-uploader-665dd38d6be4587d1902c46dd8e3663cf42a5a18.tar.gz |
Fix linting and typing errors
-rw-r--r-- | mypy.ini | 3 | ||||
-rw-r--r-- | qc_app/dbinsert.py | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -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.") |