-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Improve error handling at startup (#5994)
* fix: Handle network errors when fetching version notice Catch and handle potential network connection errors when attempting to build the version notice, preventing potential startup failures due to version check issues * refactor: Improve version check error handling and add docstring Enhance version notice function by: - Adding comprehensive docstring with description, args, returns, and example - Using contextlib.suppress to handle network errors - Removing redundant try-except block in print_banner - Simplifying version check logic * refactor: Improve telemetry error logging Change telemetry service error logging from `logger.exception()` to `logger.error()` to reduce verbosity and prevent unnecessary stack trace printing * refactor: Remove unnecessary logger import in version utility Remove unused logger import and exception logging in version check function to simplify error handling and reduce unnecessary logging
- Loading branch information
1 parent
e0f5cfc
commit c7584d8
Showing
3 changed files
with
27 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters