Fix crash on removed audio file

This commit is contained in:
Ruben van de Ven 2019-04-15 20:57:32 +02:00
parent 596abab9d2
commit 853e7954ff

View file

@ -61,7 +61,7 @@ class Message(object):
msg = message(data['@id'], data['text'])
msg.isStart = data['beginning'] if 'beginning' in data else False
msg.afterrunTime = data['afterrun'] if 'afterrun' in data else 0.
if 'audio' in data:
if 'audio' in data and data['audio'] is not None:
msg.audioFile = data['audio']['file']
msg.setStory(story)
if 'params' in data: