VarLibMergeError.stack is a list of str, not a str

Fixes https://github.com/googlefonts/fontmake/issues/766
This commit is contained in:
Cosimo Lupo 2021-05-06 11:59:10 +01:00
parent 2100a96e77
commit 6b9b23251e

View File

@ -156,7 +156,7 @@ def merge(merger, self, lst):
for k in allKeys:
allValues = nonNone(l.get(k) for l in lst)
if not allEqual(allValues):
raise ShouldBeConstant(self, expected=allValues[0], got=lst, stack="."+k)
raise ShouldBeConstant(self, expected=allValues[0], got=lst, stack=["." + k])
if not allValues:
self[k] = None
else: