if res == "", do: nil, else: res
catch
- e ->
+ _e ->
Logger.debug("Couldn't find xpath #{xpath} in XML doc")
nil
end
: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