Fix notForColor when no color is set
This commit is contained in:
parent
5db69c48b4
commit
997eeff663
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue