Skip to content

Commit

Permalink
do not throw exception when no type specifier could be determined
Browse files Browse the repository at this point in the history
  • Loading branch information
TonioF committed Mar 19, 2021
1 parent 4cc463b commit d89dd7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xcube/core/store/stores/directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def get_data_ids(self,

def has_data(self, data_id: str, type_specifier: str = None) -> bool:
assert_given(data_id, 'data_id')
actual_type_specifier = self._get_type_specifier_for_data_id(data_id)
actual_type_specifier = self._get_type_specifier_for_data_id(data_id, require=False)
if actual_type_specifier is not None:
if type_specifier is None or actual_type_specifier.satisfies(type_specifier):
path = self._resolve_data_id_to_path(data_id)
Expand Down

0 comments on commit d89dd7a

Please sign in to comment.