mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-26 02:53:07 +00:00
Proper exception chaining.
This commit is contained in:
@@ -400,7 +400,7 @@ class VoiceClient:
|
||||
p = subprocess.Popen(args, stdin=stdin, stdout=subprocess.PIPE)
|
||||
return ProcessPlayer(p, self, after)
|
||||
except subprocess.SubprocessError as e:
|
||||
raise ClientException('Popen failed: {0.__name__} {1}'.format(type(e), str(e)))
|
||||
raise ClientException('Popen failed: {0.__name__} {1}'.format(type(e), str(e))) from e
|
||||
|
||||
|
||||
def create_ytdl_player(self, url, *, options=None, use_avconv=False, after=None):
|
||||
|
||||
Reference in New Issue
Block a user