summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-09-12 16:23:42 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-09-12 16:23:42 +0000
commitc22ba96c92cf2779a1f630d978cb1c250d982767 (patch)
tree3beb8b27212c8de066699613a01b145200c2316b /lib
parentc73884aee26e45d826327031f2fa672b66267b94 (diff)
downloadredmine-c22ba96c92cf2779a1f630d978cb1c250d982767.tar.gz
redmine-c22ba96c92cf2779a1f630d978cb1c250d982767.zip
code cleanup: rubocop: fix Lint/HandleExceptions in lib/redmine/scm/adapters/mercurial_adapter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18458 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/scm/adapters/mercurial_adapter.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/redmine/scm/adapters/mercurial_adapter.rb b/lib/redmine/scm/adapters/mercurial_adapter.rb
index fb78b05d1..7325e3df3 100644
--- a/lib/redmine/scm/adapters/mercurial_adapter.rb
+++ b/lib/redmine/scm/adapters/mercurial_adapter.rb
@@ -135,6 +135,7 @@ module Redmine
begin
@summary = parse_xml(output)['rhsummary']
rescue
+ # do nothing
end
end
end
@@ -148,6 +149,7 @@ module Redmine
begin
parse_xml(output)['rhmanifest']['repository']['manifest']
rescue
+ # do nothing
end
end
path_prefix = path.blank? ? '' : with_trailling_slash(path)
@@ -193,6 +195,7 @@ module Redmine
# Mercurial < 1.5 does not support footer template for '</log>'
parse_xml("#{output}</log>")['log']
rescue
+ # do nothing
end
end
as_ary(log['logentry']).each do |le|