mirror of
https://github.com/StrawberryMaster/wayback-machine-downloader.git
synced 2025-12-17 17:56:44 +00:00
Save error files only if --all option is passed
This commit is contained in:
parent
5d4fa42fda
commit
a397476681
@ -160,7 +160,10 @@ class WaybackMachineDownloader
|
|||||||
end
|
end
|
||||||
rescue OpenURI::HTTPError => e
|
rescue OpenURI::HTTPError => e
|
||||||
puts "#{file_url} # #{e}"
|
puts "#{file_url} # #{e}"
|
||||||
file.write(e.io.read)
|
if @all
|
||||||
|
file.write(e.io.read)
|
||||||
|
puts "#{file_path} saved anyway."
|
||||||
|
end
|
||||||
rescue StandardError => e
|
rescue StandardError => e
|
||||||
puts "#{file_url} # #{e}"
|
puts "#{file_url} # #{e}"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user