diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-02-22 01:24:20 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-02-22 01:24:20 +0000 |
| commit | b503734de0824b347fa6fc53971ab394372d8d42 (patch) | |
| tree | bb86b292384eaaf931a9efd6b7cbf8a1e2151279 /openstackclient/common/exceptions.py | |
| parent | 30e2643d23688e624cb355a10c8cf47a21142a47 (diff) | |
| parent | e2158b7ef4c307ff5be7bd2ef0ca3044f37759d4 (diff) | |
| download | python-openstackclient-b503734de0824b347fa6fc53971ab394372d8d42.tar.gz | |
Merge "Clean redundant argument to dict.get"
Diffstat (limited to 'openstackclient/common/exceptions.py')
| -rw-r--r-- | openstackclient/common/exceptions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openstackclient/common/exceptions.py b/openstackclient/common/exceptions.py index ab043db0..8ec49931 100644 --- a/openstackclient/common/exceptions.py +++ b/openstackclient/common/exceptions.py @@ -122,8 +122,8 @@ def from_response(response, body): if body: if hasattr(body, 'keys'): error = body[body.keys()[0]] - message = error.get('message', None) - details = error.get('details', None) + message = error.get('message') + details = error.get('details') else: # If we didn't get back a properly formed error message we # probably couldn't communicate with Keystone at all. |
