mirror of
git://git.acid.vegas/scroll.git
synced 2024-11-07 08:46:45 +00:00
Fixed handling missing files
This commit is contained in:
parent
4c903645c4
commit
8314e8a1a7
@ -252,8 +252,9 @@ class Bot():
|
||||
self.playing = True
|
||||
self.loops[chan] = asyncio.create_task(self.play(chan, random.choice(self.db)))
|
||||
else:
|
||||
ascii = [dir+'/'+option for dir in self.db if option in self.db[dir]][0]
|
||||
ascii = [dir+'/'+option for dir in self.db if option in self.db[dir]]
|
||||
if ascii:
|
||||
ascii = ascii[0]
|
||||
if ascii.startswith('root/'):
|
||||
ascii = ascii.split('/')[1]
|
||||
self.playing = True
|
||||
|
Loading…
Reference in New Issue
Block a user