def parse_xml(data, encoding="utf-8"): res = None try: res = et_parse_xml(data,encoding) except Exception,ex : # Called from lots of places so log data here and then re raise. log.exception( ProxyClient.__module__, "parse_xml error %s", data ) raise # rethrow exception
def parse_xml(data, encoding="utf-8"): return et_parse_xml(data,encoding)