more unicode safety

This commit is contained in:
Wayne Witzel III
2016-03-31 11:20:19 -04:00
parent 5de3d57980
commit 24e20abb1b
2 changed files with 27 additions and 27 deletions

View File

@@ -67,7 +67,7 @@ def resolve_role_field(obj, field):
if len(field_components) == 1:
if type(obj) is not ImplicitRoleDescriptor and type(obj) is not Role:
raise Exception(smart_text('{} refers to a {}, not an ImplicitRoleField or Role').format(field, type(obj)))
raise Exception(smart_text('{} refers to a {}, not an ImplicitRoleField or Role'.format(field, type(obj))))
ret.append(obj)
else:
if type(obj) is ManyRelatedObjectsDescriptor: