Commit 1b97bfd
committed
fix(cli/ls): Use specific exceptions for config parse errors
Replace bare `except Exception` with `except (yaml.YAMLError,
json.JSONDecodeError, OSError)` in `_get_workspace_info()`.
This ensures only expected errors from config file parsing are caught,
allowing unrelated errors to propagate for proper debugging.1 parent cecf056 commit 1b97bfd
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
226 | 229 | | |
227 | 230 | | |
228 | 231 | | |
229 | | - | |
| 232 | + | |
230 | 233 | | |
231 | 234 | | |
232 | 235 | | |
| |||
0 commit comments