'Update the agent if possible'

def run(self):

    while True:
        try:
            time.sleep(300)
            self._checkForUpdate()
        except Exception as e:
            self.logger.error(('Problem    with    upgrade    check:    ' + traceback.format_exc(e)))
