From f232e433e6d4ad4f7c54a6d119c27a04743acee8 Mon Sep 17 00:00:00 2001 From: Hugo Duncan Date: Mon, 12 Sep 2016 10:06:35 -0400 Subject: [PATCH] Make assertion message use same var as test Ensure that the assertion message correctly shows the value used by the assertion test. --- graphene/types/argument.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene/types/argument.py b/graphene/types/argument.py index 471102d4..07dc1d1d 100644 --- a/graphene/types/argument.py +++ b/graphene/types/argument.py @@ -32,7 +32,7 @@ def to_arguments(args, extra_args): raise ValueError('Unknown argument "{}".'.format(default_name)) arg_name = default_name or arg.name - assert arg_name not in arguments, 'More than one Argument have same name "{}".'.format(arg.name) + assert arg_name not in arguments, 'More than one Argument have same name "{}".'.format(arg_name) arguments[arg_name] = arg return arguments