Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
don't catch errors
  • Loading branch information
duck1123 committed Nov 1, 2012
1 parent 7281bbe commit a4b66a4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ciste/model.clj
Expand Up @@ -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))))
Expand Down

0 comments on commit a4b66a4

Please sign in to comment.