From 8c1add0155160092c9e7980e2d7da5b7d1ddfa0f Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 22 May 2023 17:31:23 +0000 Subject: Initialize 'line'; previous pylint complained because line might not be initialized (if the genofile was empty, for example) --- gn3/db/datasets.py | 1 + 1 file changed, 1 insertion(+) (limited to 'gn3/db') diff --git a/gn3/db/datasets.py b/gn3/db/datasets.py index 470e430..38cd16c 100644 --- a/gn3/db/datasets.py +++ b/gn3/db/datasets.py @@ -16,6 +16,7 @@ def retrieve_sample_list(group: str): genofile_path = os.environ.get("GENENETWORK_FILES") + "/genotype/" + group + ".geno" if os.path.isfile(genofile_path): with open(genofile_path, "r") as genofile: + line = "" for line in genofile: line = line.strip() if not line: -- cgit v1.2.3