L #-: disable SuppressedException

This commit is contained in:
Ruben S. Montero committed 2020-05-11 13:38:28 +02:00
1 parent 23e03be0a1
commit f9fd4ebf7d
2 files changed
+6 -2

No files matched your search

@@ -23,10 +23,12 @@ require 'fileutils'
class DSMonitor
def initialize(config)
# rubocop:disable Lint/SuppressedException
begin
@ds_location = config.elements['DATASTORE_LOCATION'].text.to_s
rescue
rescue StandardError
end
# rubocop:enable Lint/SuppressedException
@ds_location ||= '/var/lib/one/datastores'
@@ -27,10 +27,12 @@ rescue StandardError => e
exit(-1)
end
# rubocop:disable Lint/SuppressedException
begin
ds_location = config.elements['DATASTORE_LOCATION'].text.to_s
rescue
rescue StandardError
end
# rubocop:enable Lint/SuppressedException
ds_location ||= '/var/lib/one/datastores'