feeds: add SyntaxError catch
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…
Reference in New Issue