ufoLib: remove stray print()

I forgot this in a previous commit
This commit is contained in:
Cosimo Lupo 2018-10-24 12:37:37 +01:00
parent 7f3bf46096
commit 8cc613fda3
No known key found for this signature in database
GPG Key ID: 59D54DB0C9976482

View File

@ -1422,8 +1422,10 @@ class UFOWriter(UFOReader):
for existingLayerName, directory in self.layerContents.items():
if directory == DEFAULT_GLYPHS_DIRNAME:
if existingLayerName != layerName:
print(existingLayerName, layerName)
raise UFOLibError("Another layer is already mapped to the default directory.")
raise UFOLibError(
"Another layer ('%s') is already mapped to the default directory."
% existingLayerName
)
elif existingLayerName == layerName:
raise UFOLibError("The layer name is already mapped to a non-default layer.")
# get an existing directory name