回答編集履歴
1
私の環境ではWWW::Mechanize::ResponseCodeErrorをMechanize::ResponseCodeErrorにしたところ動作しました。
answer
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
rescue Timeout::Error
|
13
13
|
puts "caught Timeout::Error!"
|
14
14
|
retry # タイムアウト用
|
15
|
-
rescue
|
15
|
+
rescue Mechanize::ResponseCodeError => e
|
16
16
|
case e.response_code
|
17
17
|
when "404"
|
18
18
|
puts "caught Net::HTTPNotFound!"
|