Skip to content
Snippets Groups Projects
Commit 3b2ff777 authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

FIX(scanner): variables are only replaced if parameters are present at all

parent d6c95eb2
No related branches found
No related tags found
2 merge requests!217TST: Make NamedTemporaryFiles Windows-compatible,!204Allow variable replacement in parameters of transformer functions
......@@ -583,8 +583,9 @@ class Converter(object, metaclass=ABCMeta):
raise RuntimeError("Unknown transformer function: {}".format(tr_func_key))
# Do variable replacment on function parameters:
for key in tr_func_params:
tr_func_params[key] = replace_variables(tr_func_params[key], values)
if tr_func_params is not None:
for key in tr_func_params:
tr_func_params[key] = replace_variables(tr_func_params[key], values)
# Retrieve the function from the dictionary:
tr_func = transformer_functions[tr_func_key]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment