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:
|
||||
feed = parser(data, encoding=encoding)
|
||||
|
||||
except (ValueError):
|
||||
except (ValueError, SyntaxError):
|
||||
# parsing did not work
|
||||
pass
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user