diff --git a/hugvey/story.py b/hugvey/story.py index 1d44f5c..4c1d802 100644 --- a/hugvey/story.py +++ b/hugvey/story.py @@ -546,7 +546,7 @@ class Diversion(object): return - if 'notForColor' in self.params and self.params['notForColor']: + if 'notForColor' in self.params and self.params['notForColor'] and story.currentMessage.color: if story.currentMessage.color.lower() == self.params['notForColor'].lower(): story.logger.debug(f"Skip diversion {self.id} because of section color") return