The .message attr has been deprecated. Remove check for it.

This commit is contained in:
Mike Place 2016-08-22 21:25:39 +09:00
parent 187e04e109
commit 193024d615

View File

@ -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