Open zexa opened 1 month ago
The post_process
function mentioned above might not be the only way to handle these scenarios. Some users might want to log the error, some might want to repair the broken result. We need some API that would allow us to cover these use cases as well.
This code will crash if at least one listing does not contain the element li when trying to parse Target.
The current solution is to make these Option and then filter out the unnecessary listings
However, this is tedious. Instead, we could edit the generated code to ignore the ones that failed and return everything else if we added an attribute such as