fixing when no space
This commit is contained in:
parent
4b658e90d5
commit
84ff69a52d
@ -718,9 +718,11 @@ class Say(BaseCommand):
|
|||||||
os.unlink(TempFile.name)
|
os.unlink(TempFile.name)
|
||||||
return 1
|
return 1
|
||||||
#turning the string into a list where get_rubberband just picks the second element to search in
|
#turning the string into a list where get_rubberband just picks the second element to search in
|
||||||
dline = ['', message.split(" ", 1)[1]]
|
try:
|
||||||
rubberband = get_rubberBand(dline)
|
dline = ['', message.split(" ", 1)[1]]
|
||||||
|
rubberband = get_rubberBand(dline)
|
||||||
|
except Exception:
|
||||||
|
rubberband = None
|
||||||
if AudioClip.Play(rubberband = rubberband):
|
if AudioClip.Play(rubberband = rubberband):
|
||||||
AudioClip.AudioPlayer.AddCallback("Stop", lambda: os.unlink(TempFile.name))
|
AudioClip.AudioPlayer.AddCallback("Stop", lambda: os.unlink(TempFile.name))
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user