# HG changeset patch # User Goffi # Date 1607705384 -3600 # Node ID 66c4fc1f7c30e77e75dbd2ef8d9c894be10e2068 # Parent 893582c2d983e180444193c97c6e7ab83e427a99 plugin XEP-0106: log rejected value when escaping fails. diff -r 893582c2d983 -r 66c4fc1f7c30 sat/plugins/plugin_xep_0106.py --- a/sat/plugins/plugin_xep_0106.py Fri Dec 11 17:48:19 2020 +0100 +++ b/sat/plugins/plugin_xep_0106.py Fri Dec 11 17:49:44 2020 +0100 @@ -87,7 +87,7 @@ """ 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):