From aad7906fb712d3f15829a8b49f064b616475e72a 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 --- 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 b5157867851..98932fb9e9d 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