def update(self, n=100, **kwargs): try: Stream.update(self, n, **kwargs) except socket.timeout: logging.debug("Update timed out") return