stringprep_profiles: Emit a correct StringPrepError on query + unassigned.

This commit is contained in:
Emmanuel Gil Peyrot 2016-10-27 06:44:15 +01:00
parent 63d245ac48
commit 7560db856b

View file

@ -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