-
Notifications
You must be signed in to change notification settings - Fork 129
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
FIX: Issue error and skip material on parse error #5217
Conversation
Thanks for opening a Pull Request. If you want to perform a review write a comment saying: @ansys-reviewer-bot review |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5217 +/- ##
=======================================
Coverage 83.35% 83.36%
=======================================
Files 142 142
Lines 58189 58193 +4
=======================================
+ Hits 48506 48511 +5
+ Misses 9683 9682 -1 |
93208c4
to
72aa5f9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stop_on_error is added but never used
Converted to draft to accommodate feedback on test mocking. |
Issue an error message when parsing a material fails in import_materials_from_file.
Co-authored-by: Sébastien Morais <[email protected]>
In tests the error handler is disabled so we need to expect the exception rather than checking for a False return value.
f387c3d
to
b32f7b9
Compare
@SMoraisAnsys @maxcapodi78 ready for review once again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the test upgrade :)
@isaacwaldron There seem to be a problem with the changes introduced in #5203 making some of the CICD not running in this PR. I'll try to fix that asap. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Issue a specific error message when parsing a material fails in import_materials_from_file. Also directly return False instead of relying on the catch-all exception handler.
Closes #5215