From 6044bda84f9b84c9c423c06d5308333524a9b8b2 Mon Sep 17 00:00:00 2001 From: takahashim Date: Wed, 10 Feb 2021 21:48:47 +0900 Subject: [PATCH] fix to avoid useless Error --- lib/review/pdfmaker.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/review/pdfmaker.rb b/lib/review/pdfmaker.rb index 949aaee5d..e1e53adff 100644 --- a/lib/review/pdfmaker.rb +++ b/lib/review/pdfmaker.rb @@ -134,9 +134,7 @@ def execute(*args) I18n.setup(@config['language']) @basedir = File.absolute_path(File.dirname(yamlfile)) - begin - @config.check_version(ReVIEW::VERSION) - rescue ReVIEW::ConfigError => e + unless @config.check_version(ReVIEW::VERSION, exception: false) warn e.message end