-
Notifications
You must be signed in to change notification settings - Fork 108
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
Turn unexpected fm errors into warnings #8832
Conversation
src/ert/config/ert_config.py
Outdated
@@ -608,6 +608,11 @@ def _create_list_of_forward_model_steps_to_run( | |||
context=fm_step.name, | |||
), | |||
) | |||
except Exception as e: # type: ignore | |||
ConfigWarning.warn(str(e), context=fm_step.name) |
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.
I think both the log and the warning should have the text Unexpected exception in forward model validation of {fm_step.name}:
as all ConfigWarning
s are logged in the Suggestor
we don't need an additional log statement.
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.
Just a smalll adjustment to the message shown, otherwise it is good.
8e8c117
to
2b21053
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.
👍
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8832 +/- ##
==========================================
+ Coverage 91.38% 91.41% +0.02%
==========================================
Files 342 342
Lines 21028 21030 +2
==========================================
+ Hits 19216 19224 +8
+ Misses 1812 1806 -6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Issue
Resolves #8830