1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2024-12-27 21:25:20 +01:00

XML: handle erlang errors too

This commit is contained in:
William Pitcock 2018-06-01 17:55:25 +00:00
parent dca1d6d162
commit aaa81d3540

View File

@ -32,6 +32,10 @@ defmodule Pleroma.Web.XML do
:exit, _error ->
Logger.debug("Couldn't parse XML: #{inspect(text)}")
:error
rescue
e ->
Logger.debug("Couldn't parse XML: #{inspect(text)}")
:error
end
end
end