1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Convert error to string

This commit is contained in:
Phxntxm 2017-05-07 21:23:56 -05:00
parent 9fda74775c
commit 75b0d2705f

View file

@ -72,7 +72,7 @@ class VoiceState:
embed.title = "Now playing!"
await song.channel.send(embed=embed)
except ExtractionError as e:
error = e.partition(" ")[2]
error = str(e).partition(" ")[2]
await song.channel.send("Failed to download {}!\nError: {}".format(song.title, error))
continue