Skip to content

获取配置异常时抛出或者打印异常信息 #2

@Stark-X

Description

@Stark-X

@classmethod
async def refresh(cls):
try:
await ApolloSettings.__metadata__._update_by_release_key(cls)
return True
except:
return False

当前如果配置错误,或者解析失败,只返回了一个 False ,难以排查

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions