plugin XEP-0106: log rejected value when escaping fails.
This commit is contained in:
parent
510ab4d5aa
commit
fa21471766
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ class XEP_0106(object):
|
|||
"""
|
||||
if not escaped or escaped.startswith(r'\27') or escaped.endswith(r'\27'):
|
||||
raise ValueError("escaped value must not be empty, or start or end with a "
|
||||
"whitespace")
|
||||
f"whitespace: rejected value is {escaped!r}")
|
||||
unescaped = []
|
||||
idx = 0
|
||||
while idx < len(escaped):
|
||||
|
|
|
|||
Loading…
Reference in a new issue