Skip to content

Commit

Permalink
Merge pull request #106 from lsst/tickets/DM-41365
Browse files Browse the repository at this point in the history
DM-41365: Use Butler.get_dataset_type API
  • Loading branch information
timj authored Nov 3, 2023
2 parents f00b9c5 + 9b80838 commit adf389c
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 adf389c

Please sign in to comment.