Skip to content

Commit

Permalink
add ignore errors
Browse files Browse the repository at this point in the history
  • Loading branch information
archimag committed Jun 23, 2009
1 parent d055f76 commit 51a4a7b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/planet.lisp
Expand Up @@ -166,12 +166,14 @@
(let ((entries nil)
(feeds (planet-feeds planet)))
(iter (for feed in feeds)
(xtree:with-parse-document (rawfeed (puri:parse-uri (feed-url feed)))
(update-feed-class feed rawfeed)
(xtree:with-object (nodeset (find-feed-entities feed rawfeed))
(iter (for rawentry in-nodeset (xpath:xpath-object-value nodeset))
(push (parse-feed-entry feed rawentry)
entries)))))
(ignore-errors
(xtree:with-parse-document (rawfeed (puri:parse-uri (feed-url feed)))
(update-feed-class feed rawfeed)
(xtree:with-object (nodeset (find-feed-entities feed rawfeed))
(iter (for rawentry in-nodeset (xpath:xpath-object-value nodeset))
(ignore-errors
(push (parse-feed-entry feed rawentry)
entries)))))))
(setf syndicate-feed
(xfactory:with-document-factory ((atom "http://www.w3.org/2005/Atom"))
(atom :feed
Expand Down

0 comments on commit 51a4a7b

Please sign in to comment.