lib/review/epubmaker.rb in review-5.2.0 vs lib/review/epubmaker.rb in review-5.3.0

- old
+ new

@@ -116,10 +116,12 @@ I18n.setup(@config['language']) bookname ||= @config['bookname'] booktmpname = "#{bookname}-epub" @img_math = ReVIEW::ImgMath.new(@config) - unless @config.check_version(ReVIEW::VERSION, exception: false) + begin + @config.check_version(ReVIEW::VERSION, exception: true) + rescue ReVIEW::ConfigError => e warn e.message end debug("#{bookname}.epub will be created.") FileUtils.rm_f("#{bookname}.epub")