qcodes/utils/slack.py
def update(self):
        """
        Performs tasks, and checks for new messages.
        Periodically called from widget update.
        Returns:
            None.
        """
        new_tasks = []
        for task in self.tasks:
            task_finished = task()
            if not task_finished:
                new_tasks.append(task)
        self.tasks = new_tasks

        new_messages = {}
        try:
            new_messages = self.get_new_im_messages()
        except (ReadTimeout, HTTPError, ConnectTimeout, ReadTimeoutError) as e:
            # catch any timeouts caused by network delays
            warnings.warn('error retrieving slack messages',
                          SlackTimeoutWarning)
            logging.info(e)
        self.handle_messages(new_messages)

        Performs tasks, and checks for new messages.
        Periodically called from widget update.
        Returns:
            None.
        
Performs tasks, and checks for new messages.
Periodically called from widget update.
Performs tasks and checks for new messages . Periodically called from widget update .
def update(self):
        new_tasks = []
        for task in self.tasks:
            task_finished = task()
            if not task_finished:
                new_tasks.append(task)
        self.tasks = new_tasks
        new_messages = {}
        try:
            new_messages = self.get_new_im_messages()
        except (ReadTimeout, HTTPError, ConnectTimeout, ReadTimeoutError) as e:
            warnings.warn('error retrieving slack messages',
                          SlackTimeoutWarning)
            logging.info(e)
        self.handle_messages(new_messages)
def update ( self ) : new_tasks = [ ] for task in self . tasks : task_finished = task ( ) if not task_finished : new_tasks . append ( task ) self . tasks = new_tasks new_messages = { } try : new_messages = self . get_new_im_messages ( ) except ( ReadTimeout , HTTPError , ConnectTimeout , ReadTimeoutError ) as e : warnings . warn ( 'error retrieving slack messages' , SlackTimeoutWarning ) logging . info ( e ) self . handle_messages ( new_messages )
Performs tasks, and checks for new messages.
Performs tasks and checks for new messages .
"""
        Performs tasks, and checks for new messages.
        Periodically called from widget update.
        Returns:
            None.
        """ # catch any timeouts caused by network delays
None
self