Commit c916784
committed
fix: narrow exception handling in _resolve_nested_stack_parameters
The helper caught bare Exception when resolving intrinsics in a
nested-stack resource's Parameters property, silently swallowing any
resolver bug (TypeError, AttributeError, KeyError from malformed state).
A user would see incorrect template expansion with no signal.
Now:
- UnresolvableReferenceError / InvalidTemplateException continue
(expected 'can't resolve at package time' cases — e.g. Ref to a
sibling resource).
- Any other exception is logged at DEBUG with traceback so --debug
surfaces it; the value is still dropped so packaging proceeds.
Matches the narrowing pattern applied to do_export's expansion call
site in the previous commit.1 parent 6956c10 commit c916784
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
| |||
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
92 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
93 | 104 | | |
94 | 105 | | |
95 | 106 | | |
| |||
0 commit comments