Skip to content

Commit 345137b

Browse files
committed
Only catch recoverable exception in retry
1 parent bf25a0f commit 345137b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/clojars/storage.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@
109109
(if (> i 0)
110110
(let [result (try
111111
(f)
112-
(catch Throwable t
112+
(catch Exception t
113113
t))]
114-
(if (instance? Throwable result)
114+
(if (instance? Exception result)
115115
(do (errors/report-error error-reporter result)
116116
(Thread/sleep (+ sleep (rand-int jitter)))
117117
(recur (dec i)))

0 commit comments

Comments
 (0)