diff --git a/sqlalchemy_utils/functions/orm.py b/sqlalchemy_utils/functions/orm.py index 831069b..41ce319 100644 --- a/sqlalchemy_utils/functions/orm.py +++ b/sqlalchemy_utils/functions/orm.py @@ -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]