mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
[tune/air] catch pyarrow 8.0.0 error (#25900)
pyarrow 8.0.0 raises ArrowNotImplementedError instead of pyarrow.lib.ArrowInvalid for unrecognized URI.
This commit is contained in:
parent
96693055bd
commit
0ddc9d7213
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ def get_fs_and_path(
|
|||
fs, path = pyarrow.fs.FileSystem.from_uri(uri)
|
||||
_cached_fs[cache_key] = fs
|
||||
return fs, path
|
||||
except pyarrow.lib.ArrowInvalid:
|
||||
except (pyarrow.lib.ArrowInvalid, pyarrow.lib.ArrowNotImplementedError):
|
||||
# Raised when URI not recognized
|
||||
if not fsspec:
|
||||
# Only return if fsspec is not installed
|
||||
|
|
Loading…
Add table
Reference in a new issue