Skip to content

Commit

Permalink
remove rescue get error
Browse files Browse the repository at this point in the history
  • Loading branch information
cziaarm committed Jul 24, 2024
1 parent eb480e0 commit e36aca9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions config/initializers/import_url_job_overrides.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e36aca9

Please sign in to comment.