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