aboutsummaryrefslogtreecommitdiff
path: root/gn3/db/traits.py
diff options
context:
space:
mode:
authorBonfaceKilz2022-02-17 20:52:31 +0300
committerBonfaceKilz2022-03-12 15:33:09 +0300
commit6bc7d5448970311c01aebae76c2189cf1a6aea59 (patch)
tree185649a822f154044e4a7c7333271c24a7bde0d6 /gn3/db/traits.py
parenta877119b3151efadfb4f95c7e71b3e6f32bfe3f3 (diff)
downloadgenenetwork3-6bc7d5448970311c01aebae76c2189cf1a6aea59.tar.gz
Fix pylint error
Diffstat (limited to 'gn3/db/traits.py')
-rw-r--r--gn3/db/traits.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gn3/db/traits.py b/gn3/db/traits.py
index 3827c34..f686097 100644
--- a/gn3/db/traits.py
+++ b/gn3/db/traits.py
@@ -129,7 +129,7 @@ def get_trait_csv_sample_data(conn: Any,
return "No Sample Data Found"
-def update_sample_data(conn: Any, #pylint: disable=[R0913]
+def update_sample_data(conn: Any, # pylint: disable=[R0913]
trait_name: str,
strain_name: str,
phenotype_id: int,
@@ -306,7 +306,7 @@ def delete_sample_data(conn: Any,
deleted_se_data, deleted_n_strains)
-def insert_sample_data(conn: Any, #pylint: disable=[R0913]
+def insert_sample_data(conn: Any, # pylint: disable=[R0913]
trait_name: str,
strain_name: str,
phenotype_id: int,
@@ -355,7 +355,7 @@ def insert_sample_data(conn: Any, #pylint: disable=[R0913]
"VALUES (%s, %s, %s)"),
(strain_id, data_id, count))
inserted_n_strains = cursor.rowcount
- except Exception as e: #pylint: disable=[C0103, W0612]
+ except Exception: # pylint: disable=[C0103, W0612]
conn.rollback()
raise MySQLdb.Error
return (inserted_published_data,