At first look it appears that class OSError is the only class derived
from class Error which makes class Error look redundant. Therefore, it's
better to move class LibCephFSStateError from the bunch of exception
classes derived from OSError to closer to class Error.
Signed-off-by: Rishabh Dave <ridave@redhat.com>
return 1
+class LibCephFSStateError(Error):
+ pass
+
+
class OSError(Error):
def __init__(self, errno, strerror):
super(OSError, self).__init__(errno, strerror)
pass
-class LibCephFSStateError(Error):
- pass
-
-
class WouldBlock(OSError):
pass