Skip to content

Commit

Permalink
Do not fail when a RSS feed contains an invalid date
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris00 committed May 18, 2019
1 parent 1c5d9e2 commit a2bfac2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions script/rss2html.ml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ let feed_of_url ~name url =
| Nethttp_client.Http_error(err, _) ->
let msg = Nethttp.(string_of_http_status (http_status_of_int err)) in
broken_feed name url msg
| Invalid_argument msg -> (* e.g. Syndic.Date.of_string *)
broken_feed name url ("Invalid_argument: " ^ msg)

let planet_feeds =
let add_feed acc line =
Expand Down

0 comments on commit a2bfac2

Please sign in to comment.