Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/cleanup/project_uploads.rb')
-rw-r--r--lib/gitlab/cleanup/project_uploads.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/cleanup/project_uploads.rb b/lib/gitlab/cleanup/project_uploads.rb
index 77231665e7e..ed4b363416c 100644
--- a/lib/gitlab/cleanup/project_uploads.rb
+++ b/lib/gitlab/cleanup/project_uploads.rb
@@ -44,7 +44,7 @@ module Gitlab
return unless upload && upload.local? && upload.model
upload.absolute_path
- rescue => e
+ rescue StandardError => e
logger.error e.message
# absolute_path depends on a lot of code. If it doesn't work, then it
@@ -72,7 +72,7 @@ module Gitlab
FileUtils.mv(path, new_path)
"Did #{action}"
- rescue => e
+ rescue StandardError => e
"Error during #{action}: #{e.inspect}"
end
end