Skip to content

Commit 752a63f

Browse files
committed
Updated error
1 parent c1b5985 commit 752a63f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

malariagen_data/anoph/karyotype.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ def load_inversion_tags(self, inversion: inversion_param) -> pd.DataFrame:
5555
import importlib.resources
5656
from .. import resources
5757

58-
if not self._inversion_tag_path:
59-
raise FileNotFoundError(
60-
"The file containing the inversion tags is missing."
58+
if self._inversion_tag_path is None:
59+
raise NotImplementedError(
60+
"No inversion tags are available for this data resource."
6161
)
6262
else:
6363
with importlib.resources.path(resources, self._inversion_tag_path) as path:

0 commit comments

Comments
 (0)