[Audio] Fix for AttributeError in [p]queue (#458)

This commit is contained in:
Will 2016-11-09 17:30:24 -05:00 committed by Twentysix
parent a3ab4c6fa0
commit 69adfa44fd

View File

@ -412,7 +412,7 @@ class Audio:
while any([d.is_alive() for d in downloaders]): while any([d.is_alive() for d in downloaders]):
await asyncio.sleep(0.1) await asyncio.sleep(0.1)
songs = [d.song for d in downloaders] songs = [d.song for d in downloaders if d.song is not None]
return songs return songs
async def _download_next(self, server, curr_dl, next_dl): async def _download_next(self, server, curr_dl, next_dl):