Fix crash when hasPlayed condition refers to non-existing message

This commit is contained in:
Ruben van de Ven 2019-08-26 08:04:24 +02:00
parent 6ca3a79acd
commit e819e599db
2 changed files with 3 additions and 2 deletions

View file

@ -467,6 +467,7 @@ class Condition(object):
msg = story.get(self.vars['msgId']) msg = story.get(self.vars['msgId'])
if not msg: if not msg:
story.logger.critical(f"Condition on non-existing message: {self.vars['msgId']}") story.logger.critical(f"Condition on non-existing message: {self.vars['msgId']}")
return False
#: :type msg: Message #: :type msg: Message
r = msg.isFinished() r = msg.isFinished()

View file

@ -1041,8 +1041,8 @@ class Graph {
crel('input', { crel('input', {
'type': 'number', 'type': 'number',
'min': 1, 'min': 1,
// 'max': 5, 'max': 92,
'step': .1, 'step': 1,
'on': { 'on': {
'change': function(e){ 'change': function(e){
panopticon.graph.configuration['light0_fade'] = e.target.value panopticon.graph.configuration['light0_fade'] = e.target.value