plugin XEP-0313: Fix elements dump in the warning:
The use of `pp_elt` was printing the element instead of showing them in the warning message.
This commit is contained in:
parent
d8b083cdb0
commit
502d9aad19
1 changed files with 2 additions and 2 deletions
|
|
@ -179,8 +179,8 @@ class XEP_0313:
|
|||
except StanzaError as e:
|
||||
log.warning(
|
||||
f"Can't retrieve MAM archives: {e}\n"
|
||||
f"{xml_tools.pp_elt(mam_req.toElement())}\n"
|
||||
f"{xml_tools.pp_elt(e.iq.toElement()) if e.iq else ''}"
|
||||
f"{xml_tools.p_fmt_elt(mam_req.toElement())}\n"
|
||||
f"{xml_tools.p_fmt_elt(e.iq.toElement()) if e.iq else ''}"
|
||||
)
|
||||
return
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Reference in a new issue