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'])
if not msg:
story.logger.critical(f"Condition on non-existing message: {self.vars['msgId']}")
return False
#: :type msg: Message
r = msg.isFinished()

View File

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