feeds: add SyntaxError catch
This commit is contained in:
parent
2719bd6776
commit
325a373e3e
@ -100,7 +100,7 @@ def parse(data, url=None, mimetype=None, encoding=None):
|
|||||||
try:
|
try:
|
||||||
feed = parser(data, encoding=encoding)
|
feed = parser(data, encoding=encoding)
|
||||||
|
|
||||||
except (ValueError):
|
except (ValueError, SyntaxError):
|
||||||
# parsing did not work
|
# parsing did not work
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user