Commit 0204329
authored
fix: narrow bare except Exception in preset command reconciliation (#3842)
* fix: narrow bare except Exception in preset command reconciliation
Replace overly broad except Exception with specific exception types
(ImportError, FileNotFoundError, OSError, ValueError, TypeError) to
let programming errors propagate while still falling back to generic
path-based registration for expected failures.
* fix: narrow bare except Exception in preset command reconciliation
Remove ValueError and TypeError from the except tuple per Copilot feedback.
These can mask programming/contract errors that should fail fast.
Keep only ImportError, FileNotFoundError, OSError which are expected
from extension discovery/import/IO failures.1 parent 57a8663 commit 0204329
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2097 | 2097 | | |
2098 | 2098 | | |
2099 | 2099 | | |
2100 | | - | |
| 2100 | + | |
2101 | 2101 | | |
2102 | 2102 | | |
2103 | 2103 | | |
| |||
0 commit comments