DEV: Correct rake task syntax error

This commit is contained in:
David Taylor 2019-05-20 17:43:30 +01:00
parent 31902159af
commit 0fbff66d97

View File

@ -212,12 +212,13 @@ def migrate_to_s3_all_sites
RailsMultisite::ConnectionManagement.each_connection do
begin
migrate_to_s3
rescue e
rescue RuntimeError => e
if ENV["SKIP_FAILED"]
puts e
else
raise e unless ENV["SKIP_FAILED"]
end
end
end
end