Report hex value of char with no unicode name.
@@ -864,7 +864,10 @@ def _flagged_name(cp, flag_sets):
is a map from flag name to a tuple of cp set and boolean.
True means add flag if cp in set, False means add flag if it is
not in the set."""
+ try:
name = unicode_data.name(cp)
+ except:
+ raise Exception('no name for %04X' % cp)
flags = []
for k, v in sorted(flag_sets.iteritems()):
if (cp in v[0]) == v[1]:
