diff --git a/scroll.py b/scroll.py index 3afb8d9..e707958 100644 --- a/scroll.py +++ b/scroll.py @@ -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