DocNow / diffengine

track changes to the news, where news is anything with an RSS feed
MIT License
177 stars 30 forks source link

Add exception handling for feed urls. #11

Closed ruebot closed 7 years ago

ruebot commented 7 years ago

Handles errors such as: Invalid URL '': No schema supplied. Perhaps you meant http://?

Also updates .gitignore to ignore build dir.

Surfaced while working with La Presse feeds. Specifically: http://www.lapresse.ca/rss/791.xml

https://twitter.com/lapresse_diff

edsu commented 7 years ago

Would it be possible to modify this to catch the feed fetching error inside of Feed.get_latest?

ruebot commented 7 years ago

@edsu updated. Hope that was what you're asking for.

edsu commented 7 years ago

Yes, thanks! I made a small change and added a test.