Skip to content

Commit

Permalink
Merge pull request #2953 from activeloopai/process_hub_path
Browse files Browse the repository at this point in the history
Process hub path
  • Loading branch information
activesoull authored Sep 19, 2024
2 parents 165a9e0 + ec955b1 commit e5f4f2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deeplake/util/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def __init__(self):
class InvalidHubPathException(Exception):
def __init__(self, path):
super().__init__(
f"The Dataset's path is an invalid Deep Lake cloud path. It should be of the form hub://username/dataset got {path}."
f"The Dataset's path is an invalid Deep Lake cloud path. It should be of the form hub://username/dataset, but got {path}."
)


Expand Down
2 changes: 1 addition & 1 deletion deeplake/util/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def process_hub_path(path: str) -> Tuple[str, str, str, str]:
subdir = f".queries/{s[2]}"
else:
subdir = "/".join(s[2:])
if len(s) > 2:
if len(subdir) and len(s) > 2:
if (
not (len(s) == 4 and s[2] == ".queries")
and not deeplake.constants._ENABLE_HUB_SUB_DATASETS
Expand Down

0 comments on commit e5f4f2a

Please sign in to comment.