Skip to content

Commit

Permalink
Do not attempt to convert the label to a ResourcePath in butler config
Browse files Browse the repository at this point in the history
With the recent change in ResourcePath to force /repo/main to an
absolute URI the code that was seeing if anything was found
got confused a bit because file:///repo/main was not the same
as /repo/main. Change it to allow the get_repo_uri call
to raise and if it raises continue to use the original label.
  • Loading branch information
timj committed Jan 22, 2024
1 parent f4d8695 commit b7211c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/daf/butler/_butler_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def __init__(
# Force back to a string because the resolved URI
# might not refer explicitly to a directory and we have
# check below to guess that.
other = str(ButlerRepoIndex.get_repo_uri(other, True))
other = str(ButlerRepoIndex.get_repo_uri(other, False))
if other != original_other:
resolved_alias = True

Expand Down

0 comments on commit b7211c8

Please sign in to comment.