~tribaal/txaws/xss-hardening

« back to all changes in this revision

Viewing changes to txaws/client/base.py

Merged silence-deprecation-warnings [r=oubiwann] [f=768311]

Exception.message is no longer accessed which silences deprecation
warnings in Python 2.6.  Variables are explicitly compared with None
which silences deprecation warnings in Python 2.7.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
            error.raiseException()
38
38
        try:
39
39
            fallback_error = errorClass(
40
 
                xml_payload, error.value.status, error.value.message,
 
40
                xml_payload, error.value.status, str(error.value),
41
41
                error.value.response)
42
42
        except (ParseError, AWSResponseParseError):
43
43
            error_message = http.RESPONSES.get(http_status)