Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 23, 2024
1 parent 182d69f commit f599724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dc_tools/odc/apps/dc_tools/_stac.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def _get_relative_path(asset_href, self_link):
self_parts = urlparse(self_link)
href_parts = urlparse(asset_href)

if self_parts.netloc.split('.')[0] != href_parts.netloc.split('.')[0]:
if self_parts.netloc.split(".")[0] != href_parts.netloc.split(".")[0]:
# files are not stored with same hostname (e.g. different buckets)
# therefore use the absolute path
return asset_href
Expand Down

0 comments on commit f599724

Please sign in to comment.