From b87c72f6804f285b4d21b83c4086675c62af78e5 Mon Sep 17 00:00:00 2001 From: Josh Humphries Date: Mon, 12 Aug 2024 17:49:49 +0100 Subject: [PATCH] chore: use new has_database property when creating a SplitgillDatabase --- dataimporter/importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dataimporter/importer.py b/dataimporter/importer.py index 7205bf0..6728811 100644 --- a/dataimporter/importer.py +++ b/dataimporter/importer.py @@ -149,7 +149,7 @@ def get_splitgill_database(self, view: View) -> SplitgillDatabase: :param view: a view :return: a SplitgillDatabase instance """ - if view.sg_name is None: + if not view.has_database: raise ValueError("View does not have a sg_name") return SplitgillDatabase(view.sg_name, self.client)