mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-29 21:13:58 +03:00
Resolve #750 by editing assert message
This commit is contained in:
parent
7bd77a0817
commit
aa0c401cb5
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user