misc/plugin/amazon.rb in tdiary-5.0.8 vs misc/plugin/amazon.rb in tdiary-5.0.9
- old
+ new
@@ -123,10 +123,11 @@
amazon_fetch( url )
end
rescue AmazonRedirectError
limit = $!.message.to_i
retry
- rescue ArgumentError, SystemCallError
+ rescue ArgumentError, SystemCallError, Net::HTTPExceptions
+ @logger.error "amazon.rb: #{$!.message} by #{asin}"
end
end
def amazon_author( item )
begin