intake-rss: don't fail on bozo bit
This commit is contained in:
parent
a0ebec1a78
commit
44f02519aa
@ -20,8 +20,7 @@ def main():
|
|||||||
|
|
||||||
feed = feedparser.parse(feed_url)
|
feed = feedparser.parse(feed_url)
|
||||||
if feed.bozo:
|
if feed.bozo:
|
||||||
stderr("Failed to parse feed", feed_url)
|
stderr("warning: feed is not well-formed:", feed.bozo_exception)
|
||||||
return 1
|
|
||||||
|
|
||||||
feed_title = os.environ.get("FEED_TITLE") or feed.feed.get("title")
|
feed_title = os.environ.get("FEED_TITLE") or feed.feed.get("title")
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "intake-rss"
|
name = "intake-rss"
|
||||||
version = "1.3.0"
|
version = "1.3.1"
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
intake-rss = "intake_rss.core:main"
|
intake-rss = "intake_rss.core:main"
|
||||||
|
Loading…
Reference in New Issue
Block a user