We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85afa8b commit d4b34d2Copy full SHA for d4b34d2
CHANGELOG.rst
@@ -21,6 +21,7 @@ Fixed
21
^^^^^
22
- Failure to print help when ``object`` used as type hint.
23
- Failure to parse init args when type hint is union of str and class.
24
+- Handle change of non-existent file exception type in latest fsspec version.
25
26
27
v4.13.1 (2022-08-05)
jsonargparse/util.py
@@ -410,7 +410,7 @@ def __init__(
410
handle = fsspec.open(abs_path, fsspec_mode)
411
handle.open()
412
handle.close()
413
- except FileNotFoundError:
+ except (FileNotFoundError, KeyError):
414
raise TypeError('Path does not exist: '+abs_path)
415
except PermissionError:
416
raise TypeError('Path exists but no permission to access: '+abs_path)
0 commit comments