Skip to content

Commit

Permalink
Fix bad header check
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobnissen committed Dec 3, 2024
1 parent 104dfba commit 80bd1e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vamb/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def get_taxonomy(args: argparse.Namespace) -> Union[RefinedTaxonomy, UnrefinedTa
)
with open(check_existing_file(path)) as file:
try:
header = next(file)
header = next(file).rstrip("\r\n")
except StopIteration:
header = None

Expand All @@ -410,7 +410,7 @@ def get_taxonomy(args: argparse.Namespace) -> Union[RefinedTaxonomy, UnrefinedTa
raise ValueError(
f'ERROR: When reading taxonomy file at "{path}", '
f"the first line was not either {repr(vamb.taxonomy.TAXONOMY_HEADER)} "
f"or {repr(vamb.taxonomy.TAXONOMY_HEADER)}'"
f"or {repr(vamb.taxonomy.PREDICTED_TAXONOMY_HEADER)}'"
)


Expand Down

0 comments on commit 80bd1e6

Please sign in to comment.