[varLib.merger/errors] fix undefined exception name

The exception UnsupportedFormat was defined and then redefined with the same name in varLib.errors, and imported twice from varLib.merger, probably as result of a sweeping find/replace.
Rename it 'InconsistentFormats' as originally intended.
This commit is contained in:
Cosimo Lupo 2022-06-17 11:24:56 +01:00
parent 95c98f990f
commit c34ff0d474
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ class UnsupportedFormat(VarLibMergeError):
return self.__doc__ % self.cause["subtable"] return self.__doc__ % self.cause["subtable"]
class UnsupportedFormat(UnsupportedFormat): class InconsistentFormats(UnsupportedFormat):
"""an OpenType subtable (%s) had inconsistent formats between masters""" """an OpenType subtable (%s) had inconsistent formats between masters"""

View File

@ -30,7 +30,7 @@ from .errors import (
KeysDiffer, KeysDiffer,
InconsistentGlyphOrder, InconsistentGlyphOrder,
InconsistentExtensions, InconsistentExtensions,
UnsupportedFormat, InconsistentFormats,
UnsupportedFormat, UnsupportedFormat,
VarLibMergeError, VarLibMergeError,
) )