Issue1699556
Created on 2007-04-12.21:27:20 by pragmar, last changed 2007-04-16.05:03:33 by cgroves.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2007-04-12 21:27:20 | pragmar | create | |
Created on 2007-04-12.21:27:20 by pragmar, last changed 2007-04-16.05:03:33 by cgroves.
| Messages | |||
|---|---|---|---|
| msg1554 (view) | Author: ben (pragmar) | Date: 2007-04-12.21:27:20 | |
I was attempting to trap a parsing error and a fatal error somehow leaked through. Unsure what this means, but I figured best to post it. Thanks.
import xml.dom.minidom as md
# error not trapped in jython 2.2b1
try:
xml = md.parseString('<malformed att=8>0</malformed>')
except Exception, e:
print str(e)
# Traceback (innermost last):
# File "<console>", line 2, in ?
# File "C:\jython2.2b1\Lib\xml\dom\minidom.py", line 1933, in parseString
# File "C:\jython2.2b1\Lib\xml\dom\minidom.py", line 1908, in _do_pulldom_parse
# File "C:\jython2.2b1\Lib\xml\dom\pulldom.py", line 275, in _slurp
# File "C:\jython2.2b1\Lib\xml\sax\drivers2\drv_javasax.py", line 141, in parse
# File "C:\jython2.2b1\Lib\xml\sax\drivers2\drv_javasax.py", line 58, in fatalError
# File "C:\jython2.2b1\Lib\xml\sax\handler.py", line 38, in fatalError
# SAXParseException: <unknown>:1:16: Open quote is expected for attribute "att" associated with an element type "malformed".
# w/o "Exception", jython 2.2b1 behaves.
try:
xml = md.parseString('<malformed att=8>0</malformed>')
except:
pass
#>>>
|
|||
| msg1555 (view) | Author: Charlie Groves (cgroves) | Date: 2007-04-16.05:03:33 | |
Fixed in r3151. The exceptions in sax were coming from Java's Exception instead of Python's for some reason. This will be in 2.2b2. Thanks for the bug report! |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2007-04-12 21:27:20 | pragmar | create | |
Supported by Python Software Foundation,
Powered by Roundup