Merge pull request #45 from adindrabkin/mutation_args-fstring
mutation_args f-string to prevent TypeErrormaster
commit
eb38a151e4
|
@ -75,8 +75,8 @@ def dump_schema(url, method, graphversion, headers, use_json, proxy):
|
||||||
print("{} (\033[93m{}\033[0m!), ".format(args_name, args_ttype), end='')
|
print("{} (\033[93m{}\033[0m!), ".format(args_name, args_ttype), end='')
|
||||||
cmdlist.append(args_name)
|
cmdlist.append(args_name)
|
||||||
|
|
||||||
# generate mutation query
|
# generate mutation query as a formatted string to avoid the program crashing when args_ttype is None
|
||||||
mutation_args += args_name + ":" + args_ttype + ","
|
mutation_args += f'{args_name}:{args_ttype},'
|
||||||
print("")
|
print("")
|
||||||
|
|
||||||
if (types['name'].lower().strip() == "mutations"):
|
if (types['name'].lower().strip() == "mutations"):
|
||||||
|
|
Loading…
Reference in New Issue