lib/bender/main.rb in bender-bot-0.4.0 vs lib/bender/main.rb in bender-bot-0.4.1
- old
+ new
@@ -240,15 +240,15 @@
room_id = options.primary_room_id
loop do
is = refresh_incidents bot
- # begin
+ begin
set_room_name_and_topic room_id, is, hipchat_v2, bot
sleep options.issue_refresh
- # rescue NoMethodError
- # sleep 1
- # end
+ rescue HipChat::UnknownResponseCode
+ sleep 1
+ end
end
end
end