Skip to content

Commit

Permalink
chore: use new has_database property when creating a SplitgillDatabase
Browse files Browse the repository at this point in the history
  • Loading branch information
jrdh committed Aug 12, 2024
1 parent c79160d commit b87c72f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataimporter/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit b87c72f

Please sign in to comment.