Skip to content

Commit

Permalink
This should never be hit
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair committed Jan 27, 2025
1 parent 3ba67b1 commit 12f5ab3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dkist/dataset/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ def _load_from_directory(directory):
elif None in suffixes:
asdfs_to_load.append(base_path / f"{prefix}.asdf")

Check warning on line 216 in dkist/dataset/loader.py

View check run for this annotation

Codecov / codecov/patch

dkist/dataset/loader.py#L215-L216

Added lines #L215 - L216 were not covered by tests
else:
raise ValueError("How did you end up here?")
# This branch should never be hit because the regex enumerates the suffixes
raise ValueError("Unknown suffix encountered.") # pragma: no cover

# Throw a warning if we have skipped any files
if ignored_files := set(asdf_files).difference(asdfs_to_load):
Expand Down

0 comments on commit 12f5ab3

Please sign in to comment.