lib/awesome_bot/result.rb in awesome_bot-1.11.0 vs lib/awesome_bot/result.rb in awesome_bot-1.12.0
- old
+ new
@@ -44,9 +44,15 @@
s = s.reject do |x|
( (x['error'].message.include? 'server certificate') || (x['error'].message.include? 'SSL_connect') ) unless x['error'].nil?
end
end
+ unless options['errors'].nil?
+ options['errors'].each do |c|
+ s = s.reject { |x| x['status']==c.to_i }
+ end
+ end
+
s
end
def success(options)
success_dupe && success_links(options)