Resolve #750 by editing assert message

This commit is contained in:
Kurtis Jantzen 2018-05-30 16:56:42 -06:00
parent 7bd77a0817
commit aa0c401cb5

View File

@ -101,8 +101,8 @@ class Node(AbstractNode):
if only_type: if only_type:
assert graphene_type == only_type, ( assert graphene_type == only_type, (
'Must receive an {} id.' 'Must receive a {} id.'
).format(graphene_type._meta.name) ).format(only_type._meta.name)
# We make sure the ObjectType implements the "Node" interface # We make sure the ObjectType implements the "Node" interface
if cls not in graphene_type._meta.interfaces: if cls not in graphene_type._meta.interfaces: