Commit 0df19055 authored by Pablo Galindo's avatar Pablo Galindo Committed by Serhiy Storchaka

bpo-31776: Missing "raise from None" in Lib/xml/etree/ElementPath.py (#3978)

parent 676db4bb
......@@ -285,7 +285,7 @@ def iterfind(elem, path, namespaces=None):
try:
selector.append(ops[token[0]](next, token))
except StopIteration:
raise SyntaxError("invalid path")
raise SyntaxError("invalid path") from None
try:
token = next()
if token[0] == "/":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment