Skip to content

Commit

Permalink
print fail to parse feed error
Browse files Browse the repository at this point in the history
  • Loading branch information
KTachibanaM committed Oct 19, 2024
1 parent 6b9aad2 commit 14ae517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rss_lambda/process_rss_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def process_rss_text(rss_text: str, processor: Callable[[ParsedRssText], None])
# Determine if it's a valid and supported feed
feed = feedparser.parse(rss_text)
if feed.bozo != 0:
raise RSSLambdaError(f"Failed to parse the feed")
raise RSSLambdaError(f"Failed to parse the feed: {feed.bozo_exception}")
if feed.version not in supported_feed_versions:
raise RSSLambdaError(f"Unsupported feed version: {feed.version}")

Expand Down

0 comments on commit 14ae517

Please sign in to comment.