def run(self): try: self._parse_binlog() except IOError as e: if e.errno == errno.EPIPE: # just stop if the pipe breaks pass else: raise