diff options
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. |
