From aaa81d354000be56e3ea6709e0f39a2c93f04174 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 1 Jun 2018 17:55:25 +0000 Subject: [PATCH] XML: handle erlang errors too --- lib/pleroma/web/xml/xml.ex | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.45.2