From 6f2498ee4c11eb5a3312fd8856a7ebab2ad37318 Mon Sep 17 00:00:00 2001 From: narkisr Date: Wed, 13 Mar 2013 06:02:57 +0200 Subject: [PATCH] catching throwable in order to intercept assertion errors --- src/taoensso/carmine/message_queue.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/taoensso/carmine/message_queue.clj b/src/taoensso/carmine/message_queue.clj index 4ce9498c..ae282a51 100644 --- a/src/taoensso/carmine/message_queue.clj +++ b/src/taoensso/carmine/message_queue.clj @@ -135,7 +135,7 @@ (car/with-conn pool spec (car/sadd (qkey qname "recently-done") message-id)) - (catch Exception e + (catch Throwable e (timbre/error e (str "Exception while handling message from queue: " qname "\n") poll-reply)))))) @@ -196,4 +196,4 @@ :handler-fn (fn [msg] (throw (Exception. "Oh noes"))) :handler-ttl-msecs 10000)) - (stop my-worker)) \ No newline at end of file + (stop my-worker))