diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-03-14 14:51:57 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-03-14 14:51:57 +0000 |
| commit | 7449dae40a0391ea85d037703ff58e941afd7f8a (patch) | |
| tree | c57cb6cc4a63315ac5f8f3593dabc689acef1047 /openstackclient/common/exceptions.py | |
| parent | 6abed7a471c5df3da1f455d84c50ab425448336c (diff) | |
| parent | dc7e4fc15d80eed5a814f0b87e1860f0cd86c2ee (diff) | |
| download | python-openstackclient-7449dae40a0391ea85d037703ff58e941afd7f8a.tar.gz | |
Merge "Fix dict.keys() compatibility for python 3"
Diffstat (limited to 'openstackclient/common/exceptions.py')
| -rw-r--r-- | openstackclient/common/exceptions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/common/exceptions.py b/openstackclient/common/exceptions.py index 5f5f5ab1..ee0f7a11 100644 --- a/openstackclient/common/exceptions.py +++ b/openstackclient/common/exceptions.py @@ -122,7 +122,7 @@ def from_response(response, body): cls = _code_map.get(response.status, ClientException) if body: if hasattr(body, 'keys'): - error = body[body.keys()[0]] + error = body[list(body.keys())[0]] message = error.get('message') details = error.get('details') else: |
