Skip to content

Commit

Permalink
Add error handling for incorrect data load.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrp84 committed Sep 17, 2024
1 parent f7e9853 commit e8fa3ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion satpy/readers/oli_tirs_l1_tif.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def __init__(self, filename, filename_info, filetype_info, mda, **kwargs):
def get_dataset(self, key, info):
"""Load a dataset."""
if self.channel != key["name"]:
return
raise ValueError(f"Requested channel {key['name']} does not match the reader channel {self.channel}")

logger.debug("Reading %s.", key["name"])

Expand Down

0 comments on commit e8fa3ac

Please sign in to comment.