lxml.etree.parse raises UnicodeDecodeError instead of IOError
Bug #712941 reported by
griph
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Fix Released
|
Medium
|
scoder |
Bug Description
lxml.etree.parse should give IOError if applied to non-existent
path. If lxml.etree.parse is given a path containing characters beyond latin-1,
it gives UnicodeDecodeError instead. That hides original cause of an
exception.
Versions:
Python : (2, 6, 2, 'final', 0)
lxml.etree : (2, 2, 8, 0)
lxml.etree : (2, 7, 7)
lxml.etree : (2, 7, 7)
lxml.etree : (1, 1, 26)
lxml.etree : (1, 1, 26)
Changed in lxml: | |
milestone: | none → 3.2 |
To post a comment you must log in.
Fixed here:
https:/ /github. com/lxml/ lxml/commit/ 7698fac30c6f859 a1150a79a67540f e3b3fd77d1