python-troveclient/troveclient/apiclient
Zhao Chao 0b28b04ebb Handle error response for webob>=1.6.0
WebOb change https://github.com/Pylons/webob/pull/230 changed
the way in which the error response body is formatted such that
it's no longer a nested dict. So we have to handle both the
old convention of an error message key to the response body error
dict and the new way with just the error body dict.

This was reported upstream:
https://github.com/Pylons/webob/issues/235

But given this was apparently implemented as a long-overdue change
in WebOb the behavior is not likely to change.

Change-Id: Id8bfde6277640de48768bbe5a5e4252b97253ed2
Closes-Bug: #1559072
Co-Authored-By: Matt Riedemann <mriedem@us.ibm.com>
Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
2018-02-06 16:00:59 +08:00
..
__init__.py move old apiclient code out of openstack/common 2016-11-10 10:02:08 -05:00
auth.py turn on warning-is-error for documentation builds 2017-07-13 10:39:32 -05:00
base.py turn on warning-is-error for documentation builds 2017-07-13 10:39:32 -05:00
client.py turn on warning-is-error for documentation builds 2017-07-13 10:39:32 -05:00
exceptions.py Handle error response for webob>=1.6.0 2018-02-06 16:00:59 +08:00