diff options
Diffstat (limited to 'Lib/xml')
-rw-r--r-- | Lib/xml/etree/ElementPath.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xml/etree/ElementPath.py b/Lib/xml/etree/ElementPath.py index c9d6ef3..ef32917 100644 --- a/Lib/xml/etree/ElementPath.py +++ b/Lib/xml/etree/ElementPath.py @@ -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] == "/": |