Commit b6b6c9a1 authored by C. Wick's avatar C. Wick

Fix if key not present in typography

parent 470612dd
Pipeline #21743 passed with stage
in 5 minutes and 53 seconds
......@@ -84,7 +84,10 @@ class Aligner:
# add typography but ignore separators or blanks
for key in typo.keys():
character_position.typo[key] = [Character(c.char, c.probability) for c in find_in_typo[key](center).chars]
try:
character_position.typo[key] = [Character(c.char, c.probability) for c in find_in_typo[key](center).chars]
except ValueError:
pass
r.positions.append(character_position)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment