From 9895782a0204c7ec8c200904d55f364439de69ef Mon Sep 17 00:00:00 2001 From: Georg Gadinger Date: Wed, 21 Dec 2022 10:56:52 +0000 Subject: [PATCH] data_export/user: remove rescue since local image handling works now for sure --- lib/use_case/data_export/user.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/use_case/data_export/user.rb b/lib/use_case/data_export/user.rb index 86fe7f6e..6dcbb36f 100644 --- a/lib/use_case/data_export/user.rb +++ b/lib/use_case/data_export/user.rb @@ -68,12 +68,7 @@ module UseCase picture.versions.each do |version, file| export_filename = "pictures/#{file.mounted_as}_#{version}_#{file.filename}" to[export_filename] = if file.url.start_with?("/") - begin - Rails.public_path.join(file.url.sub(%r{\A/+}, "")).read - rescue - # TODO: fix image handling in local development environments!!! see #822 - "ceci n'est pas un image\n" - end + Rails.public_path.join(file.url.sub(%r{\A/+}, "")).read else HTTParty.get(file.url).parsed_response end