fix compile warnings

This commit is contained in:
Maksim Pechnikov 2018-12-09 12:12:48 +03:00
commit 074fa790ba
53 changed files with 203 additions and 259 deletions

View file

@ -28,12 +28,12 @@ defmodule Pleroma.Web.XML do
|> :xmerl_scan.string()
doc
catch
:exit, _error ->
rescue
_e ->
Logger.debug("Couldn't parse XML: #{inspect(text)}")
:error
rescue
e ->
catch
:exit, _error ->
Logger.debug("Couldn't parse XML: #{inspect(text)}")
:error
end