diff --git a/SharedProcessors/VariableToString.py b/SharedProcessors/VariableToString.py index 1bd8d27..1b59f91 100644 --- a/SharedProcessors/VariableToString.py +++ b/SharedProcessors/VariableToString.py @@ -40,11 +40,12 @@ def main(self): if value is not None: self.env[output_variable] = value - self.output_variables[output_variable] = { - "description": "the custom output" - } + if input_variable != output_variable: + self.output_variables[output_variable] = { + "description": "the string output" + } else: - raise ProcessorError(f"Variable not found.") + raise ProcessorError("Variable not found.") if __name__ == "__main__":