]> 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)
committerRamana Raja <rraja@redhat.com>
Mon, 17 Jun 2019 12:20:52 +0000 (17:50 +0530)
This will allow access to `args` when catching `Error`.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit aad7906fb712d3f15829a8b49f064b616475e72a)

src/pybind/cephfs/cephfs.pyx

index 56a63cd480b56be20256f12a5fb6731fab2e86a0..daef4a07cc55c96c999802d9f83510ecb54c466b 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