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

View file

@ -546,7 +546,7 @@ class Diversion(object):
return 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(): if story.currentMessage.color.lower() == self.params['notForColor'].lower():
story.logger.debug(f"Skip diversion {self.id} because of section color") story.logger.debug(f"Skip diversion {self.id} because of section color")
return return