projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'optional-retry-queue' into 'develop'
[akkoma]
/
lib
/
pleroma
/
web
/
xml
/
xml.ex
diff --git
a/lib/pleroma/web/xml/xml.ex
b/lib/pleroma/web/xml/xml.ex
index 8b609f6958b0bb8c6be7daabfeac99904d2eb71c..da3f68ecba51f22ba966665944f37feb908c2cdf 100644
(file)
--- a/
lib/pleroma/web/xml/xml.ex
+++ b/
lib/pleroma/web/xml/xml.ex
@@
-14,7
+14,7
@@
defmodule Pleroma.Web.XML do
if res == "", do: nil, else: res
catch
if res == "", do: nil, else: res
catch
- e ->
+
_
e ->
Logger.debug("Couldn't find xpath #{xpath} in XML doc")
nil
end
Logger.debug("Couldn't find xpath #{xpath} in XML doc")
nil
end
@@
-32,6
+32,10
@@
defmodule Pleroma.Web.XML do
:exit, _error ->
Logger.debug("Couldn't parse XML: #{inspect(text)}")
:error
: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
end
end
end