From 6bc7d5448970311c01aebae76c2189cf1a6aea59 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Thu, 17 Feb 2022 20:52:31 +0300 Subject: Fix pylint error --- gn3/db/traits.py | 6 +++--- 1 file 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, -- cgit v1.2.3