Show URL that caused invalid feed error

The error may originate from another page in the feed, and only showing
the original URL makes it harder to track down invalid feed issues
(see #967).
This commit is contained in:
auouymous 2021-03-02 20:38:47 -07:00
parent 835e0903ed
commit d9d83a36e7
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ class gPodderFetcher(feedcore.Fetcher):
feed['headers'] = headers
return feedcore.Result(status, PodcastParserFeed(feed, self, max_episodes))
except ValueError as e:
raise feedcore.InvalidFeed('Could not parse feed: {msg}'.format(msg=e))
raise feedcore.InvalidFeed('Could not parse feed: {url}: {msg}'.format(url=url, msg=e))
# Our podcast model: