Fix indent level
This commit is contained in:
parent
e1885cab0b
commit
b53e8c794f
|
@ -215,14 +215,14 @@ module Auxiliary::HttpCrawler
|
|||
rescue ::Timeout::Error
|
||||
# Bubble this up to the top-level handler
|
||||
raise $!
|
||||
rescue ::Exception => e
|
||||
# Ridiculous f'ing anonymous timeout exception which I've no idea
|
||||
# how it comes into existence.
|
||||
if e.to_s =~ /execution expired/
|
||||
raise ::Timeout::Error
|
||||
else
|
||||
print_error("Crawler Exception: #{url} #{e} #{e.backtrace}")
|
||||
end
|
||||
rescue ::Exception => e
|
||||
# Ridiculous f'ing anonymous timeout exception which I've no idea
|
||||
# how it comes into existence.
|
||||
if e.to_s =~ /execution expired/
|
||||
raise ::Timeout::Error
|
||||
else
|
||||
print_error("Crawler Exception: #{url} #{e} #{e.backtrace}")
|
||||
end
|
||||
ensure
|
||||
@crawler.shutdown rescue nil
|
||||
@crawler = nil
|
||||
|
|
Loading…
Reference in New Issue