diff --git a/hugvey/story.py b/hugvey/story.py index c8abc29..a1d166e 100644 --- a/hugvey/story.py +++ b/hugvey/story.py @@ -1337,11 +1337,11 @@ class Story(object): if name not in self.variables: self.logger.warn(f"Set variable that is not needed in the story: {name}") else: - self.logger.debug(f"Set variable {name} to {value}") - - if self.variableValues[name] == value: - self.logger.debug(f"Skip double setting of variable {name} to {value}") - return + if self.variableValues[name] == value: + self.logger.debug(f"Skip double setting of variable {name} to {value}") + return + else: + self.logger.debug(f"Set variable {name} to {value}") self.variableValues[name] = value if store: