From: Venky Shankar Date: Sun, 19 May 2019 17:20:51 +0000 (-0400) Subject: py / cephfs: invoke base class Error::__init__() from OSError::__init__() X-Git-Tag: v15.1.0~2452^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=aad7906fb712d3f15829a8b49f064b616475e72a;p=ceph.git py / cephfs: invoke base class Error::__init__() from OSError::__init__() This will allow access to `args` when catching `Error`. Signed-off-by: Venky Shankar --- diff --git a/src/pybind/cephfs/cephfs.pyx b/src/pybind/cephfs/cephfs.pyx index b5157867851f..98932fb9e9d5 100644 --- a/src/pybind/cephfs/cephfs.pyx +++ b/src/pybind/cephfs/cephfs.pyx @@ -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