Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

try to handle connector errors in linkbot

  • Loading branch information...
commit c7e3806ea4b63b295143e52b92c0c0bf6394cd54 1 parent 7fb8b4d
Bill Mill llimllib authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 linkbot.rb
8 linkbot.rb
View
@@ -51,7 +51,13 @@ def initialize
# Go through all of the connectors and send to all that accept broadcasts
linkbot.connectors.each do |c|
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
else
Please sign in to comment.
Something went wrong with that request. Please try again.