Fix notForColor when no color is set

This commit is contained in:
Ruben van de Ven 2019-04-25 18:13:44 +02:00
parent 5db69c48b4
commit 997eeff663
1 changed files with 1 additions and 1 deletions

View File

@ -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