(tree)
| 127 | |
| 128 | @staticmethod |
| 129 | def parse_error_xml(tree): |
| 130 | info = {} |
| 131 | error_node = tree |
| 132 | if not error_node.tag == "Error": |
| 133 | error_node = tree.find(".//Error") |
| 134 | if error_node is not None: |
| 135 | for child in error_node: |
| 136 | if child.text != "": |
| 137 | debug("ErrorXML: " + child.tag + ": " + repr(child.text)) |
| 138 | info[child.tag] = child.text |
| 139 | else: |
| 140 | raise S3ResponseError("Malformed error XML returned from remote server.") |
| 141 | return info |
| 142 | |
| 143 | |
| 144 | class CloudFrontError(S3Error): |
no test coverage detected