klepto 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/klepto/bot.rb +2 -2
- data/lib/klepto/version.rb +1 -1
- metadata +1 -1
data/lib/klepto/bot.rb
CHANGED
@@ -62,10 +62,10 @@ EOS
|
|
62
62
|
|
63
63
|
# This is here to debug, having a weird issue with getting a 200 and sometimes
|
64
64
|
# returning @browser.failure? => true
|
65
|
-
|
65
|
+
sleep 1
|
66
66
|
|
67
67
|
# If the page was not a failure or if not aborting, structure that bad boy.
|
68
|
-
if (
|
68
|
+
if (@browser.failure? && @config.abort_on_failure?)
|
69
69
|
@config.after_handlers[:abort].each {|ah| ah.call(@browser) }
|
70
70
|
else
|
71
71
|
@structure = __structure(@browser.page)
|
data/lib/klepto/version.rb
CHANGED