Skip to content

Commit

Permalink
Use Butler.get_dataset_type API
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Oct 27, 2023
1 parent f00b9c5 commit 9b80838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/ci/hsc/gen3/tests/_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def check_mock(
raise ValueError("No butler instance provided")
try:
# check for mock dataset type
butler.registry.getDatasetType(f"_mock_{dataset_type}")
butler.get_dataset_type(f"_mock_{dataset_type}")
return True
except KeyError:
return False
Expand Down

0 comments on commit 9b80838

Please sign in to comment.