From 7560db856b1cde1d6778b8374272fc20a2bbfe66 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 27 Oct 2016 06:44:15 +0100 Subject: [PATCH] stringprep_profiles: Emit a correct StringPrepError on query + unassigned. --- slixmpp/util/stringprep_profiles.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/slixmpp/util/stringprep_profiles.py b/slixmpp/util/stringprep_profiles.py index 5fb0b4b7..8ba3842f 100644 --- a/slixmpp/util/stringprep_profiles.py +++ b/slixmpp/util/stringprep_profiles.py @@ -146,6 +146,7 @@ def create(nfkc=True, bidi=True, mappings=None, if bidi: check_bidi(data) if query and unassigned: - check_unassigned(data, unassigned) + #check_unassigned(data, unassigned) + raise StringPrepError('Query profile with unassigned data is unimplemented.') return data return profile