You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Extract duplicate exception handling to helper method in ConfigManager (#66)
The get_instance_name() and get_value() methods had identical exception
handling blocks that displayed warnings for various config-related errors.
This duplicated ~12 lines of code.
Changes:
- Add _handle_config_error() helper method to centralize error handling
- Update both methods to use a single except clause delegating to helper
- Use union type syntax (X | Y) in isinstance checks per UP038 lint rule
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments