]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rados.pyx: make all exceptions accept keyword arguments 22979/head
authorRishabh Dave <ridave@redhat.com>
Mon, 7 May 2018 12:57:13 +0000 (12:57 +0000)
committerVictor Denisov <denisovenator@gmail.com>
Wed, 11 Jul 2018 05:01:01 +0000 (22:01 -0700)
commit65f3a61aa4afd6285ae0cce5c4c0ece3f72c48f2
tree9b197e9803069f0b50b40876d882fc9e827d88b5
parent488df8a1076c4f5fc5b8d18a90463262c438740f
rados.pyx: make all exceptions accept keyword arguments

Moving the code that makes exceptions accept keyword arguments from the
exception OSError to Error prevents a crash when exceptions not
inheriting OSError are received.

Fixes: http://tracker.ceph.com/issues/24033
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 16458025da1c5854f1ef3840ac7d58fb5a715c64)
src/pybind/rados/rados.pyx