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/json.rb')
-rw-r--r--lib/gitlab/json.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/json.rb b/lib/gitlab/json.rb
index b51c0a33457..561cd4509b1 100644
--- a/lib/gitlab/json.rb
+++ b/lib/gitlab/json.rb
@@ -84,7 +84,7 @@ module Gitlab
Oj.load(string, opts)
rescue Oj::ParseError, Encoding::UndefinedConversionError => ex
- raise parser_error.new(ex)
+ raise parser_error, ex
end
# Take a Ruby object and convert it to a string. This method varies
@@ -169,7 +169,7 @@ module Gitlab
# @return [Boolean]
def feature_table_exists?
Feature::FlipperFeature.table_exists?
- rescue
+ rescue StandardError
false
end
end