You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an output processor requires a value and a field has no data, doing get_output_value will raise an exception whereas load_item doesn't. I expected get_output_value to return None in this case.
The text was updated successfully, but these errors were encountered:
load_item doesn't even return the field name on fields that it can't parsed(or there is no data), which in my opinion is kinda bad as sometimes it is better to have a default value for fields that are not found.
The only 2 times get_output_value raises an error are :
There is some kind of Exception on the output_processor for the specific field name
The field name does not contain inside self._values
I use this personal function to fill in missing a default value for missing field names after an item has been loaded using the load_item method.
If an output processor requires a value and a field has no data, doing
get_output_value
will raise an exception whereasload_item
doesn't. I expectedget_output_value
to returnNone
in this case.The text was updated successfully, but these errors were encountered: