summaryrefslogtreecommitdiff
path: root/openstackclient/common/exceptions.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-02-22 01:24:20 +0000
committerGerrit Code Review <review@openstack.org>2016-02-22 01:24:20 +0000
commitb503734de0824b347fa6fc53971ab394372d8d42 (patch)
treebb86b292384eaaf931a9efd6b7cbf8a1e2151279 /openstackclient/common/exceptions.py
parent30e2643d23688e624cb355a10c8cf47a21142a47 (diff)
parente2158b7ef4c307ff5be7bd2ef0ca3044f37759d4 (diff)
downloadpython-openstackclient-b503734de0824b347fa6fc53971ab394372d8d42.tar.gz
Merge "Clean redundant argument to dict.get"
Diffstat (limited to 'openstackclient/common/exceptions.py')
-rw-r--r--openstackclient/common/exceptions.py4
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.