~tribaal/txaws/xss-hardening

« back to all changes in this revision

Viewing changes to txaws/ec2/exception.py

  • Committer: Jamu Kakar
  • Date: 2011-04-21 13:10:37 UTC
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: jkakar@kakar.ca-20110421131037-wgxdheq8zkp2tnmk
- Made changes to silence deprecations warnings on Python 2.7.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
    """
11
11
    def _set_400_error(self, tree):
12
12
        errors_node = tree.find(".//Errors")
13
 
        if errors_node:
 
13
        if errors_node is not None:
14
14
            for error in errors_node:
15
15
                data = self._node_to_dict(error)
16
16
                if data: