From 8d8e6b22f16f253cfa28ec05089762811d5d2f57 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Wed, 16 Feb 2022 08:14:56 +0100 Subject: [PATCH] Catch all Throwable --- project.clj | 2 +- src/rsspaper/feeds.clj | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/project.clj b/project.clj index beaa581..b9f0c2e 100644 --- a/project.clj +++ b/project.clj @@ -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" diff --git a/src/rsspaper/feeds.clj b/src/rsspaper/feeds.clj index d1412f8..8494cef 100644 --- a/src/rsspaper/feeds.clj +++ b/src/rsspaper/feeds.clj @@ -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