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