From: Roman Chvanikov Date: Sat, 11 Jul 2020 15:11:23 +0000 (+0300) Subject: Error in Filter.Exiftool if exiftool not found X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=45bd64e2a7a08377e260e93c8e1744166bfc133a;p=akkoma Error in Filter.Exiftool if exiftool not found --- diff --git a/lib/pleroma/upload/filter/exiftool.ex b/lib/pleroma/upload/filter/exiftool.ex index 94622acd0..6a40e152f 100644 --- a/lib/pleroma/upload/filter/exiftool.ex +++ b/lib/pleroma/upload/filter/exiftool.ex @@ -14,11 +14,10 @@ defmodule Pleroma.Upload.Filter.Exiftool do def filter(%Pleroma.Upload{tempfile: file, content_type: "image" <> _}) do if Pleroma.Utils.command_available?("exiftool") do System.cmd("exiftool", ["-overwrite_original", "-gps:all=", file], parallelism: true) + :ok else - Logger.warn("exiftool is not available, filter #{__MODULE__} skipped") + {:error, "exiftool command not found"} end - - :ok end def filter(_), do: :ok