1
0
Fork 0
mirror of synced 2024-06-23 08:40:41 +12:00

Added an extra error check for playing music, in case is_done does not exist

This commit is contained in:
phxntxm 2016-08-21 02:18:35 -05:00
parent 2f85aebee0
commit 803a764007

View file

@ -81,7 +81,10 @@ class VoiceState:
# If they do exist, check if the current player has finished
player = self.current.player
return not player.is_done()
try:
return not player.is_done()
except AttributeError:
return False
@property
def player(self):