Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions polaris/hub/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ def open_zarr_file(
except HTTPStatusError as error:
# In this case, we can pass the response to provide more information
raise PolarisHubError(message="Error opening Zarr store", response=error.response) from error
# This catches all other types of exceptions
except Exception as error:
raise PolarisHubError(message="Error opening Zarr store") from error

Expand Down
3 changes: 2 additions & 1 deletion polaris/hub/polarisfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ def __init__(

# Prefix to remove from ls entries
self.prefix = f"dataset/{dataset_owner}/{sluggify(dataset_name)}/"
self.base_path = f"/storage/{self.prefix.rstrip('/')}"
# Base path for uploading. Please pay attention on path version update.
self.base_path = f"/v1/storage/{self.prefix.rstrip('/')}"

@staticmethod
def is_polarisfs_path(path: str) -> bool:
Expand Down