Commit cecf056
committed
fix(cli/load): Narrow exception handling in load_plugins()
Replace bare `except Exception` with specific exception types:
- First try block: `except AttributeError` for string operations on
non-string plugin values
- Second try block: `except (ImportError, AttributeError)` for module
import failures and missing plugin class attributes
This prevents catching unrelated errors like KeyboardInterrupt or
MemoryError that should propagate up.1 parent d43aced commit cecf056
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
0 commit comments