Skip to content

Commit

Permalink
try to handle connector errors in linkbot
Browse files Browse the repository at this point in the history
  • Loading branch information
bill committed May 8, 2012
1 parent 7fb8b4d commit c7e3806
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion linkbot.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@ def initialize
# Go through all of the connectors and send to all that accept broadcasts # Go through all of the connectors and send to all that accept broadcasts
linkbot.connectors.each do |c| linkbot.connectors.each do |c|
if c.options["receive_broadcasts"] if c.options["receive_broadcasts"]
c.send_messages(messages) begin
c.send_messages(messages)
rescue => e
end_msg = "the #{c} connector threw an exception: #{e.inspect}"
puts e.inspect
puts e.backtrace.join("\n")
end
end end
end end
else else
Expand Down

0 comments on commit c7e3806

Please sign in to comment.