mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 14:17:59 +01:00
Warn on copy failure
This commit is contained in:
parent
464cc26a85
commit
a7ffde8f89
1 changed files with 7 additions and 3 deletions
|
@ -71,9 +71,13 @@ defmodule Philomena.Objects do
|
|||
# |> ExAws.request!(opts[:config_overrides])
|
||||
# end)
|
||||
|
||||
file_path = Briefly.create!()
|
||||
download_file(source_key, file_path)
|
||||
upload(dest_key, file_path)
|
||||
try do
|
||||
file_path = Briefly.create!()
|
||||
download_file(source_key, file_path)
|
||||
upload(dest_key, file_path)
|
||||
rescue
|
||||
_ -> Logger.warn("Failed to copy #{source_key} -> #{dest_key}")
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue