Skip to content

Commit

Permalink
Bump fsspec from 2023.4.0 to 2023.5.0
Browse files Browse the repository at this point in the history
Bumps [fsspec](https://github.com/fsspec/filesystem_spec) from 2023.4.0 to 2023.5.0.
- [Commits](fsspec/filesystem_spec@2023.4.0...2023.5.0)

---
updated-dependencies:
- dependency-name: fsspec
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
  • Loading branch information
dependabot[bot] authored and karajan1001 committed May 13, 2023
1 parent eeb21fe commit c4175a2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ package_dir=
=src
packages = find:
install_requires=
fsspec==2023.4.0
fsspec==2023.5.0
oss2==2.17.0
aiooss2==0.2.5

Expand Down
4 changes: 2 additions & 2 deletions src/ossfs/async_oss.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def _get_bucket(
app_name="ossfs",
)
except ClientError as err:
raise ValueError(bucket_name) from err
raise FileNotFoundError(bucket_name) from err

async def set_session(self, refresh: bool = False):
"""Establish a connection session object.
Expand Down Expand Up @@ -337,7 +337,7 @@ async def _info(self, path: str, **kwargs):
"name": path,
"type": "directory",
}
raise FileNotFoundError(norm_path)
raise FileNotFoundError(path)

def _cache_result_analysis(self, norm_path: str, parent: str) -> bool:
if norm_path in self.dircache:
Expand Down
2 changes: 1 addition & 1 deletion src/ossfs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def _get_bucket(
app_name="ossfs",
)
except oss2.exceptions.ClientError as err:
raise ValueError(bucket_name) from err
raise FileNotFoundError(bucket_name) from err

def _call_oss(
self,
Expand Down
2 changes: 1 addition & 1 deletion tests/func/test_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_errors(
with pytest.raises(FileNotFoundError):
ossfs.mv(path + "x", path + "y")

with pytest.raises(ValueError):
with pytest.raises(FileNotFoundError):
ossfs.open("x", "rb")

with pytest.raises(FileNotFoundError):
Expand Down

0 comments on commit c4175a2

Please sign in to comment.