-
Notifications
You must be signed in to change notification settings - Fork 755
Catching exceptions from iterator MoveNext() (related to #475) #523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #523 +/- ##
==========================================
- Coverage 76.9% 69.42% -7.49%
==========================================
Files 63 1 -62
Lines 5582 278 -5304
Branches 890 0 -890
==========================================
- Hits 4293 193 -4100
+ Misses 998 85 -913
+ Partials 291 0 -291
Continue to review full report at Codecov.
|
For future reference, the only place where a general "catch (Exception E)" and subsequent Exceptions.SetError() is done without throwing away the outermost exception is in TypeMethod.Invoke. |
@rickardraysearch can you clarify about that TypeMethod.Invoke? Is this an issue or just a note? |
@denfromufa , I only wanted to note that the usage is not completely consistent across all invocations of Exceptions.SetError(). When we revisit how to do the SetErrors, I want to remember this without having to find it out again. |
What happens if you call Other than adding that test, ok to merge |
@vmuriart did you mean calling this part twice?
|
@vmuriart or did you mean to verify this behavior? |
both :). |
@rickardraysearch can you please address the suggestions from @vmuriart and then we can merge this! |
We just ran into the same issue that this pull request is going to fix. Is there any particular reason this was never merged? If there is further work to be done we would be happy to help. |
@ArvidJB i just updated this branch with latest master and CI tests look good. You can add 2 additional unit tests suggested by @vmuriart but personally I approved this PR. If one more core developers approves, then we can merge this. @filmor had a question and that probably can be addressed in another PR. |
@denfromufa / @vmuriart I think this boils down to adding the following lines
to |
@ArvidJB please fork @rickardraysearch branch and make a new pull request with your changes. If you PR looks good, then we can close this PR. |
@denfromufa I just submitted #693 with the enhanced testing |
Merged as #693. |
What does this implement/fix? Explain your changes.
Catches exceptions in iterator MoveNext() and throws them in python instead of crashing.
Does this close any currently open issues?
Issue #475
Any other comments?
...
Checklist
Check all those that are applicable and complete.
AUTHORS
CHANGELOG