From f7d794b6080fb9591e44e04c0ad9abb3e1286947 Mon Sep 17 00:00:00 2001 From: hartator Date: Fri, 21 Aug 2015 20:53:56 -0500 Subject: [PATCH] Ignore urls with malformed file names #5 --- lib/wayback_machine_downloader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wayback_machine_downloader.rb b/lib/wayback_machine_downloader.rb index af11996..5603d2f 100644 --- a/lib/wayback_machine_downloader.rb +++ b/lib/wayback_machine_downloader.rb @@ -93,7 +93,7 @@ class WaybackMachineDownloader puts "#{file_url} # #{e}" end end - rescue Errno::ENAMETOOLONG => e + rescue Errno::ENAMETOOLONG, Errno::EINVAL => e puts "#{file_url} # #{e}" end puts "#{file_url} -> #{file_path} (#{count}/#{file_list_curated.size})"