]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
py / cephfs: invoke base class Error::__init__() from OSError::__init__()
authorVenky Shankar <vshankar@redhat.com>
Sun, 19 May 2019 17:20:51 +0000 (13:20 -0400)
committerVenky Shankar <vshankar@redhat.com>
Fri, 14 Jun 2019 04:26:51 +0000 (00:26 -0400)
This will allow access to `args` when catching `Error`.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
src/pybind/cephfs/cephfs.pyx

index b5157867851f3c7876bd2be7e6b11b8605db30cf..98932fb9e9d56029d54e5e9966251fb660056280 100644 (file)
@@ -158,6 +158,7 @@ class Error(Exception):
 
 class OSError(Error):
     def __init__(self, errno, strerror):
+        super(OSError, self).__init__(errno, strerror)
         self.errno = errno
         self.strerror = strerror