]> jaekl.net Git - quanlib.git/commitdiff
(Re-apply change from 959451f9d4862c43b0fe9a7b27f302ace982f7a4)
authorChris Jaekl <chris@jaekl.net>
Mon, 24 Jun 2024 18:47:57 +0000 (14:47 -0400)
committerChris Jaekl <chris@jaekl.net>
Mon, 24 Jun 2024 18:47:57 +0000 (14:47 -0400)
app/scanner/epub.rb

index c4a6fb030e85d37d4a8cf4cddf5cfe04ddee09dd..bfc1e0db95a12d135129ab03a9f5b9426175555a 100644 (file)
@@ -26,11 +26,11 @@ module Scanner
 
         book = scan_base_attributes(filename)
         scan_opf(book, zipfile, opf_path)
-      rescue Zip::Error => e
-        puts "ERROR processing file #{filename.inspect}:"
-        puts e.message
-        puts e.backtrace
       end
+    rescue Zip::Error => e
+      puts "ERROR processing file #{filename.inspect}:"
+      puts e.message
+      puts e.backtrace
     end
 
     private