def reread(self):
        """
        Read and parse credentials file.
        If something goes wrong, log exception and continue.
        """
        logger.debug("Loading credentials from %s",
                     os.path.abspath(self.creds_filename))
        creds = {}
        try:
            with self.open_creds() as fp:
                creds = yaml.safe_load(fp)
        except IOError:
            logger.info("No credentials file found at %s",
                        os.path.abspath(self.creds_filename))
        except:
            logger.exception("Error loading credentials file")
        if creds != self.creds:
            self.creds = creds
            return True
        return False
def reread ( self ) : logger . debug ( "Loading credentials from %s" , os . path . abspath ( self . creds_filename ) ) creds = { } try : with self . open_creds ( ) as fp : creds = yaml . safe_load ( fp ) except IOError : logger . info ( "No credentials file found at %s" , os . path . abspath ( self . creds_filename ) ) except : logger . exception ( "Error loading credentials file" ) if creds != self . creds : self . creds = creds return True return False
Read and parse credentials file.
        If something goes wrong, log exception and continue.