From 0007a0d2066826572cfada35d80e6f8b4086b261 Mon Sep 17 00:00:00 2001 From: hartator Date: Fri, 4 Sep 2015 23:34:43 -0500 Subject: [PATCH] Catch more errors related to directory structure --- 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 62fbe9f..a2e6acf 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, Errno::EINVAL => e + rescue StandardError => e puts "#{file_url} # #{e}" end puts "#{file_url} -> #{file_path} (#{count}/#{file_list_curated.size})"