-
Describe the bug |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Could you show some example code?
Glad to advise.
…On Dec 24, 2021, 1:41 AM -0500, ghbook ***@***.***>, wrote:
Describe the bug
If we select optional element on page spatula.selectors.SelectorError: is raised, I want to handle it in process_item, catching the SelectorError: exception is not working. I aslo tried 'len(elem)' or 'elem is not None' but nothing seems to work.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
In a nutshell this is what I want to do. How to handle |
Beta Was this translation helpful? Give feedback.
-
can you just catch the SelectorError like a normal exception?
|
Beta Was this translation helpful? Give feedback.
can you just catch the SelectorError like a normal exception?