Merge "Catch attrbute error for other APIs"

This commit is contained in:
Zuul 2017-11-30 01:48:44 +00:00 committed by Gerrit Code Review
commit 751ac9f070
1 changed files with 3 additions and 0 deletions

View File

@ -148,6 +148,9 @@ def raise_from_response(response, error_message=None):
except ValueError:
if response.reason:
remote_error += " {reason}".format(reason=response.reason)
except AttributeError:
if response.reason:
remote_error += " {reason}".format(reason=response.reason)
_log_response_extras(response)