Fix error message

This commit is contained in:
Konsta Vesterinen
2014-09-09 09:13:59 +03:00
parent 9a0170e313
commit 5dace22833

View File

@@ -90,12 +90,11 @@ def get_mapper(mixed):
]
if len(mappers) > 1:
raise ValueError(
"Multiple mappers found for table '%s'."
% mixed.name
"Multiple mappers found for table '%s'." % mixed.name
)
elif not mappers:
raise ValueError(
"Could not get mapper for table '%s'."
"Could not get mapper for table '%s'." % mixed.name
)
else:
return mappers[0]