]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/rbd: new OperationCanceled exception
authorJason Dillaman <dillaman@redhat.com>
Tue, 23 Jul 2019 16:50:59 +0000 (12:50 -0400)
committerJason Dillaman <dillaman@redhat.com>
Sun, 18 Aug 2019 20:47:10 +0000 (16:47 -0400)
commit285676df7a77b66ef3ae05b6f8a9025b585815e3
treee5361e2d834a9a821950e3cbbf1531bd78281bff
parent61a065d140c127b1e40c4c1b5ad1b8d1c48414c3
pybind/rbd: new OperationCanceled exception

This allows the error to be directly caught instead of attempting
to parse the OSError.errno

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 2e85381665a28167cc01d3ef66a577502b79e7ed)
src/pybind/rbd/rbd.pyx
src/test/pybind/test_rbd.py