From e36aca969cb3aee0121418658e1b8c0a78492b82 Mon Sep 17 00:00:00 2001 From: Rory McNicholl Date: Wed, 24 Jul 2024 16:08:12 +0100 Subject: [PATCH] remove rescue get error --- config/initializers/import_url_job_overrides.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/initializers/import_url_job_overrides.rb b/config/initializers/import_url_job_overrides.rb index 58b97356..469c378e 100644 --- a/config/initializers/import_url_job_overrides.rb +++ b/config/initializers/import_url_job_overrides.rb @@ -6,13 +6,13 @@ def copy_remote_file(uri, name, headers = {}) Rails.logger.debug("ImportUrlJob: Copying <#{uri}> to #{dir}") File.open(File.join(dir, filename), 'wb') do |f| - begin +# begin write_file(uri, f, headers) yield f - rescue StandardError => e - STDERR.puts("IMPORT URL ERROR: #{e}") - send_error(e.message) - end +# rescue StandardError => e +# STDERR.puts("IMPORT URL ERROR: #{e}") +# send_error(e.message) +# end end Rails.logger.debug("ImportUrlJob: Closing #{File.join(dir, filename)}") end