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.
exc
fs.errors.PathError
1 parent 60b0a63 commit f412cb4Copy full SHA for f412cb4
fs/errors.py
@@ -139,13 +139,14 @@ class PathError(FSError):
139
140
default_message = "path '{path}' is invalid"
141
142
- def __init__(self, path, msg=None): # noqa: D107
143
- # type: (Text, Optional[Text]) -> None
+ def __init__(self, path, msg=None, exc=None): # noqa: D107
+ # type: (Text, Optional[Text], Optional[Exception]) -> None
144
self.path = path
145
+ self.exc = exc
146
super(PathError, self).__init__(msg=msg)
147
148
def __reduce__(self):
- return type(self), (self.path, self._msg)
149
+ return type(self), (self.path, self._msg, self.exc)
150
151
152
class NoSysPath(PathError):
0 commit comments