lib/command/update/general_lastup_updater.rb in narou-3.2.5.1 vs lib/command/update/general_lastup_updater.rb in narou-3.3.0

- old
+ new

@@ -1,6 +1,7 @@ -# -*- coding: utf-8 -*- +# frozen_string_literal: true + # # Copyright 2013 whiteleaf. All rights reserved. # require_relative "../../narou/api" @@ -66,10 +67,10 @@ dates = { "novelupdated_at" => downloader.get_novelupdated_at, "general_lastup" => downloader.get_general_lastup, "length" => downloader.novel_length } - rescue OpenURI::HTTPError, Errno::ECONNRESET + rescue OpenURI::HTTPError, Errno::ECONNRESET, Errno::ETIMEDOUT, Net::OpenTimeout next end data = @database[id] data.merge!(dates) last_check_date = data["last_check_date"] || data["last_update"]