Add support for classification of non-fiction books.
[quanlib.git] / walkdir.rb
index 236e3feaf7244852b4b58e780e9fdce456da6fc2..6ef98c242de8d285ff8479e65d961b6911cbe7ea 100644 (file)
@@ -33,7 +33,7 @@ class WalkDir
     for file in @files.sort
       if Book.can_handle?(file) && (!is_duplicate?(file))
         book = Book.new(@store)
-        book.load_from_file(file)
+        book.load_from_file!(file)
         id = @store.store_book(book)
         result.push(id)
       end