Catch all Throwable

This commit is contained in:
Andros Fenollosa 2022-02-16 08:14:56 +01:00
parent 91b2c85fcc
commit 8d8e6b22f1
2 changed files with 3 additions and 6 deletions

View File

@ -1,4 +1,4 @@
(defproject rsspaper "1.2.3"
(defproject rsspaper "1.2.4"
:description "RSSpaper"
:url "https://github.com/tanrax/RSSpaper"
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"

View File

@ -91,12 +91,9 @@
(conj feeds (assoc feed :feed-url feed-url))
; Alert fail
(prn (str "Error with '" feed-url) "'")))
(catch clojure.lang.ExceptionInfo e
(let [response (ex-data e)
{:keys [status headers]} response]
(catch Throwable e
(prn (str feed-url " has been ignored because of bad formatting."))
;; do anything you want
))))
)))
[] (:feeds config))
zip-feeds-in-articles
datetimes-to-unixtime