mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-22 17:46:57 +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:
|
||||
assert graphene_type == only_type, (
|
||||
'Must receive an {} id.'
|
||||
).format(graphene_type._meta.name)
|
||||
'Must receive a {} id.'
|
||||
).format(only_type._meta.name)
|
||||
|
||||
# We make sure the ObjectType implements the "Node" interface
|
||||
if cls not in graphene_type._meta.interfaces:
|
||||
|
|
Loading…
Reference in New Issue
Block a user