~tribaal/txaws/xss-hardening

« back to all changes in this revision

Viewing changes to txaws/exception.py

  • Committer: Thomas Hervé
  • Date: 2010-03-29 17:16:46 UTC
  • Revision ID: thomas@canonical.com-20100329171646-y69fncazdjnw6dcr
Fix test suite against latest release of Twisted, which requires the code argument
to twisted.web.error.Error to be present [trivial]

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
    """
11
11
    A base class for txAWS errors.
12
12
    """
13
 
    def __init__(self, xml_bytes, status=None, message=None, response=None):
 
13
    def __init__(self, xml_bytes, status, message=None, response=None):
14
14
        super(AWSError, self).__init__(status, message, response)
15
15
        if not xml_bytes:
16
16
            raise ValueError("XML cannot be empty.")