summaryrefslogtreecommitdiffstats
path: root/lib/tasks/locales.rake
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-05-25 06:50:25 +0000
committerGo MAEDA <maeda@farend.jp>2019-05-25 06:50:25 +0000
commitb0e17e8199bb40d0b1bed2c3dded355f439d8b3a (patch)
tree694b9ccde636af70a5aa515b62d1020a5eac9e62 /lib/tasks/locales.rake
parenta12b7bcf2931045e63093adcd765d7c6e022fa05 (diff)
downloadredmine-b0e17e8199bb40d0b1bed2c3dded355f439d8b3a.tar.gz
redmine-b0e17e8199bb40d0b1bed2c3dded355f439d8b3a.zip
Don't rescue Exception class (#31387).
Patch by Go MAEDA and Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@18197 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks/locales.rake')
-rw-r--r--lib/tasks/locales.rake4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/locales.rake b/lib/tasks/locales.rake
index 028a25154..952f8f6de 100644
--- a/lib/tasks/locales.rake
+++ b/lib/tasks/locales.rake
@@ -168,12 +168,12 @@ END_DESC
puts "parsing #{filename}..."
begin
parser.parse File.open(filename)
- rescue Exception => e1
+ rescue => e1
puts(e1.message)
puts("")
end
end
- rescue Exception => e
+ rescue => e
puts(e.message)
end
end