-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(python): clear error message when trying to serialize function (#824
) A common error seems to be to try to pass a function as a parameter into a JSII call (have seen 3 occurrences of this in the last week). Previously, this call would fail when trying to assing the `__jsii_type__` property to the function object. Specifically catch this case to give a helpful error message. Fixes aws/aws-cdk#4064.
- Loading branch information
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters