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