Skip to content
Browse files

don't catch errors

  • Loading branch information...
1 parent 7281bbe commit a4b66a46794b7959ffe96d93659697230f071a2b @duck1123 committed Oct 31, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/ciste/model.clj
View
4 src/ciste/model.clj
@@ -43,9 +43,7 @@
"Fetch the url, return the string"
[^String url]
(log/debugf "fetching resource: %s" url)
- (if-let [response (try (client/get url)
- (catch Exception ex
- (log/error ex)))]
+ (if-let [response (client/get url)]
(let [{:keys [body status]} response]
(when (not (#{404 500} status))
body))))

0 comments on commit a4b66a4

Please sign in to comment.
Something went wrong with that request. Please try again.