Fix crash on removed audio file
This commit is contained in:
parent
596abab9d2
commit
853e7954ff
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class Message(object):
|
||||||
msg = message(data['@id'], data['text'])
|
msg = message(data['@id'], data['text'])
|
||||||
msg.isStart = data['beginning'] if 'beginning' in data else False
|
msg.isStart = data['beginning'] if 'beginning' in data else False
|
||||||
msg.afterrunTime = data['afterrun'] if 'afterrun' in data else 0.
|
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.audioFile = data['audio']['file']
|
||||||
msg.setStory(story)
|
msg.setStory(story)
|
||||||
if 'params' in data:
|
if 'params' in data:
|
||||||
|
|
Loading…
Reference in a new issue