From: William Pitcock Date: Fri, 1 Jun 2018 17:55:25 +0000 (+0000) Subject: XML: handle erlang errors too X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=aaa81d354000be56e3ea6709e0f39a2c93f04174;p=akkoma XML: handle erlang errors too --- diff --git a/lib/pleroma/web/xml/xml.ex b/lib/pleroma/web/xml/xml.ex index 36430a3fa..da3f68ecb 100644 --- a/lib/pleroma/web/xml/xml.ex +++ b/lib/pleroma/web/xml/xml.ex @@ -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