lib/chatterbot/retweet.rb in chatterbot-1.0.0 vs lib/chatterbot/retweet.rb in chatterbot-1.0.1
- old
+ new
@@ -14,10 +14,14 @@
if debug_mode?
debug "I'm in debug mode, otherwise I would retweet with tweet id: #{id}"
return
end
#:nocov:
-
- client.retweet id
+
+ begin
+ client.retweet id
+ rescue StandardError => e
+ puts e.inspect
+ end
end
end
end