Skip to content

Commit

Permalink
Merge pull request #22 from martinklepsch/catch-throwable
Browse files Browse the repository at this point in the history
catch Throwable instead of Exception if handling update in go-loop fails
  • Loading branch information
Otann authored Aug 27, 2017
2 parents 6ecc6c7 + c7d4989 commit 0d551f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/morse/polling.clj
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
(when-let [data (<! updates)]
(try
(handler data)
(catch Exception e
(log/error e "Unable to handle update" data)))
(catch Throwable t
(log/error t "Unable to handle update" data)))
(recur))))


Expand Down

0 comments on commit 0d551f0

Please sign in to comment.