Commit 654da15
committed
Catch ParseError through defusedxml
`defusedxml.ElementTree` re-exports the stdlib `ParseError`, so the root
sniff in `fetchers.py` needs no import of `xml.etree.ElementTree` of its
own.1 parent aa49be5 commit 654da15
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
396 | 395 | | |
397 | 396 | | |
398 | 397 | | |
399 | | - | |
| 398 | + | |
400 | 399 | | |
401 | 400 | | |
402 | 401 | | |
| |||
0 commit comments