def error(self, exception): from logging import SAXError self.log(SAXError({'exception': str(exception)})) raise exception
def log(exception): from logging import SAXError self.log(SAXError({'exception': str(exception)}))