]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Be more selective when catching exceptions. 21351/head
authorVolker Theile <vtheile@suse.com>
Fri, 27 Apr 2018 11:39:07 +0000 (13:39 +0200)
committerVolker Theile <vtheile@suse.com>
Fri, 27 Apr 2018 13:59:57 +0000 (15:59 +0200)
commit87ff98c95e8cac278b1e0ba6fa8ccb4f006e5b95
treede4128cc03d4e2ada689cae76ee5f54346c543eb
parente1d344b55fd8cefc72ef071b0454defdfb3e186b
mgr/dashboard: Be more selective when catching exceptions.

- Do some minor improvements in the RGW client
- Do not catch ALL exceptions to do not block the current exception handler that prints the stack trace in the log file
- Throw RequestException istead of Exception when user does not have the required keys

Signed-off-by: Volker Theile <vtheile@suse.com>
src/pybind/mgr/dashboard/controllers/rgw.py
src/pybind/mgr/dashboard/services/rgw_client.py