Skip to content

Conversation

@LinJin23
Copy link
Contributor

Description

  • Improve try_get to handle exceptions from platform APIs
  • Fall back to the default value and log a warning when errors occur

Motivation and Context

  • Platform APIs may raise NotImplementedError or TimeoutError
  • This change ensures chassis_db_init continues populating the DB with safe defaults instead of failing

How Has This Been Tested?

Todo

Additional Information (Optional)

N/A

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants