Skip to content

Commit

Permalink
Merge pull request #207 from CZJCC/feature/v2-readme
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
CZJCC authored Jan 7, 2025
2 parents 067557d + 73d9865 commit ec2d037
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def run(self):

setup(
name="nacos-sdk-python",
version="2.0.0.beta5",
version="2.0.0.beta7",
packages=find_packages(
exclude=["test", "*.tests", "*.tests.*", "tests.*", "tests"]),
url="https://github.com/nacos-group/nacos-sdk-python",
Expand Down
3 changes: 3 additions & 0 deletions v2/nacos/transport/nacos_server_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ def __init__(self, logger, client_config: ClientConfig, http_agent: HttpAgent):
asyncio.create_task(self.auth_client.get_access_token(True))

async def init(self):
if len(self.server_list) != 0:
return

await self._get_server_list_from_endpoint()
if len(self.server_list) == 0:
raise NacosException(INVALID_SERVER_STATUS, "server list is empty")
Expand Down

0 comments on commit ec2d037

Please sign in to comment.