safe process text if error - return not modifyed text

def try_process_text(self, text):
        """ safe process text if error - return not modifyed text """
        if not text:
            return text
        try:
            return self.process_text(text)
        except (socket.gaierror, socket.timeout, xml.parsers.expat.ExpatError):
            return text