From b004f235d6636ed1e62688af6d39a27e1d81c4a8 Mon Sep 17 00:00:00 2001 From: JGStew Date: Thu, 28 Sep 2023 23:53:01 -0400 Subject: [PATCH] minor tweak --- SharedProcessors/VariableToString.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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__":