Skip to content

Commit f561c62

Browse files
author
root
committed
1 parent 1b267de commit f561c62

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: app/helpers/gitolite_hooks_helper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def validate_encoded_time(clear_time, encoded_time, key)
2323
valid = true
2424
end
2525
end
26-
rescue Exception => e
26+
rescue => e
2727
logger.error { "Error in validate_encoded_time(): #{e.message}" }
2828
end
2929

Diff for: lib/redmine_gitolite/admin.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def gitolite_admin_repo_push
141141
def get_lock_file
142142
begin
143143
lock_file ||= File.new(@lock_file_path, File::CREAT|File::RDONLY)
144-
rescue Exception => e
144+
rescue => e
145145
lock_file = nil
146146
end
147147

Diff for: lib/redmine_gitolite/recycle.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def recover_repository_if_present?(repository)
123123
# Pull up any matching repositories. Sort them (beginning is representation of time)
124124
begin
125125
files = RedmineGitolite::GitHosting.execute_command(:shell_cmd, "find '#{@recycle_bin_dir}' -type d -regex '#{myregex}' -prune -print 2> /dev/null").chomp.split("\n").sort {|x, y| y <=> x }
126-
rescue Exception => e
126+
rescue RedmineGitolite::GitHosting::GitHostingException => e
127127
files = []
128128
end
129129

0 commit comments

Comments
 (0)