mirror of
https://github.com/ceph/ceph
synced 2025-02-22 02:27:29 +00:00
Merge pull request #15574 from dillaman/wip-20223
pybind/rbd: OSError should be picklable Reviewed-by: Mykola Golub <mgolub@mirantis.com>
This commit is contained in:
commit
c42c9f9afd
@ -394,6 +394,8 @@ class OSError(Error):
|
||||
def __str__(self):
|
||||
return '[Errno {0}] {1}'.format(self.errno, self.strerror)
|
||||
|
||||
def __reduce__(self):
|
||||
return (self.__class__, (self.errno, self.strerror))
|
||||
|
||||
class PermissionError(OSError):
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user