<#9480 refactor: Avoid so much exception handling ...
# meltano-repo-activity
g
#9480 refactor: Avoid so much exception handling when finding a setting Pull request opened by edgarrmondragon Anyway it's always either suppressed, or handled and used to set the setting definition to
None
. ## Description ## Related Issues • Closes #XXXX ## Summary by Sourcery Refactor setting lookup to return None for missing settings and simplify exception handling across SettingsService and SettingsStore Enhancements: • Change find_setting to return None instead of raising SettingMissingError • Remove try/except and suppression blocks around find_setting in get_with_metadata, set_with_metadata, and unset • Emit a RuntimeWarning for unknown settings in set_with_metadata instead of using exceptions • Prune redundant SettingMissingError imports and exception handling in SettingsStore meltano/meltano