Skip to content

Commit

Permalink
fix to avoid useless Error
Browse files Browse the repository at this point in the history
  • Loading branch information
takahashim committed Feb 10, 2021
1 parent 4926ef1 commit 6044bda
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/review/pdfmaker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6044bda

Please sign in to comment.