wrap filters/conditionals in a try-except block
allows accessing undefined fields without exception or locals().get(…) but hides mistakes/typos/etc by evaluating to False without feedback performance loss compared to the previous version without try-except is negligible (~20ns for me)
This commit is contained in:
@@ -6085,6 +6085,18 @@ Description
|
||||
this cache.
|
||||
|
||||
|
||||
filters-environment
|
||||
-------------------
|
||||
Type
|
||||
``bool``
|
||||
Default
|
||||
``true``
|
||||
Description
|
||||
Evaluate filter expressions raising an exception as ``false``
|
||||
instead of aborting the current extractor run
|
||||
by wrapping them in a `try`/`except` block.
|
||||
|
||||
|
||||
format-separator
|
||||
----------------
|
||||
Type
|
||||
|
||||
Reference in New Issue
Block a user