Tweak the message for variants

Although the code does not, in fact, know about them, it's more
pertinent to say that they're unsupported than to say that the variant
in question is unknown.

Change-Id: I411d792dc91f2d7af58a4b7919c952a005b3417e
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
This commit is contained in:
Edward Welbourne 2024-02-05 13:49:07 +01:00
parent d5e40b5e58
commit d935a89d25

View File

@ -352,7 +352,11 @@ class CldrAccess (object):
parts.append(text)
if len(parts) > 1:
parts[-1] = 'and ' + parts[-1]
assert parts
else:
assert parts
if parts[0].startswith('variant'):
raise Error(f'No support for {parts[0]}',
language, script, territory, variant)
raise Error('Unknown ' + ', '.join(parts),
language, script, territory, variant)