From 2103230cb6623e7e918bdda2421b165cdfd33b71 Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Sun, 19 May 2019 13:20:51 -0400 Subject: [PATCH] py / cephfs: invoke base class Error::__init__() from OSError::__init__() This will allow access to `args` when catching `Error`. Signed-off-by: Venky Shankar (cherry picked from commit aad7906fb712d3f15829a8b49f064b616475e72a) --- src/pybind/cephfs/cephfs.pyx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pybind/cephfs/cephfs.pyx b/src/pybind/cephfs/cephfs.pyx index 56a63cd480b56..daef4a07cc55c 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 -- 2.39.5