]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rados.pyx: make all exceptions accept keyword arguments 21853/head
authorRishabh Dave <ridave@redhat.com>
Mon, 7 May 2018 12:57:13 +0000 (12:57 +0000)
committerRishabh Dave <ridave@redhat.com>
Mon, 7 May 2018 13:00:21 +0000 (13:00 +0000)
commit16458025da1c5854f1ef3840ac7d58fb5a715c64
tree28f1dd68e5b1c8d600f2c4d81ad1b2c762dca473
parent135fe40dee2ec3db22a43a9c30ef7a10b482c596
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>
src/pybind/rados/rados.pyx