mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
The .message attr has been deprecated. Remove check for it.
This commit is contained in:
parent
187e04e109
commit
193024d615
@ -260,8 +260,6 @@ def get_error(e):
|
||||
aws['status'] = e.status
|
||||
if hasattr(e, 'reason'):
|
||||
aws['reason'] = e.reason
|
||||
if hasattr(e, 'message') and e.message != '':
|
||||
aws['message'] = e.message
|
||||
if hasattr(e, 'error_code') and e.error_code is not None:
|
||||
aws['code'] = e.error_code
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user