Skip to content
Snippets Groups Projects
Commit d8749908 authored by David Schäfer's avatar David Schäfer
Browse files

strengthening the default error policy

parent 3d2732a3
No related branches found
No related tags found
No related merge requests found
......@@ -147,9 +147,7 @@ def runner(metafname, flagger, data, flags=None, nodata=np.nan, error_policy="ra
def _handleErrors(err, configrow, test, policy):
line = configrow[Fields.LINENUMBER]
msg = f" config, line {line}, test: `{test}` failed with `{type(err).__name__}: {err}`"
if policy == "raise":
return True
elif policy == "ignore":
if policy == "ignore":
logging.debug(msg)
return False
elif policy == "warn":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment