-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Python exception handling in user provided functions
Adds null checks around the returned object of user provided functions and fails if the returned object is NULL. This stops us from segfaulting and provides an immediate error as opposed to the error propagating up further down the pipeline when we attempt to use the NULL object. Add null check for encoded string in Machida's TCPSinkEncoder Verifies that the string we're outputting is infact a string so we do not segfault if the user provides an encoder function that does not return a string.
- Loading branch information
Showing
2 changed files
with
34 additions
and
15 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