Repository navigation
Commit 4bf2f92
committed
fix: Ignore NameError when introspecting plan functions
When getting type hints to determine if a function is a plan, a
NameError can be raised (specifically when checking pydantic.Field in
this case) and the context loading crashes. Ignoring the error in the
same way that we ignore TypeError allows us to ignore broken types.
As we are only interested in specific return types (Generator) this
shouldn't affect which functions are treated as plans.1 parent 7622ee0 commit 4bf2f92
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
0 commit comments