回答編集履歴

1

私の環境ではWWW::Mechanize::ResponseCodeErrorをMechanize::ResponseCodeErrorにしたところ動作しました。

2017/07/09 08:23

投稿

black-bass
black-bass

スコア10

test CHANGED
@@ -26,7 +26,7 @@
26
26
 
27
27
  retry # タイムアウト用
28
28
 
29
- rescue WWW::Mechanize::ResponseCodeError => e
29
+ rescue Mechanize::ResponseCodeError => e
30
30
 
31
31
  case e.response_code
32
32