def METHOD_NAME(self):
    with open(self._token_filename) as f:
        content = f.read()
        if not content:
            raise ConfigException("Token file exists but empty.")
        self.token = "bearer " + content
        self.token_expires_at = datetime.datetime.now(
        ) + self._token_refresh_period