-
Notifications
You must be signed in to change notification settings - Fork 16
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
Assertion error after nested #87
Comments
Can you please provide a minimal reproducible example? |
I was able to reproduce it with: from parsel import Selector
from itemloaders import ItemLoader
loader = ItemLoader(selector=Selector('<body></body>'))
nl1 = loader.nested_xpath('//missing-tag')
nl1.add_xpath('foo', './/p/text()') |
I'm not sure what's the expected behavior in this case:
I would go with |
Asserts are just incorrect, |
So _check_selector_method() checks |
If xpath in nested_xpath not exists
Code
Assertion in _get_xpathvalues:
The text was updated successfully, but these errors were encountered: