mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +00:00
Raise a different exception if ffmpeg is not found in PATH.
This commit is contained in:
parent
3ebe64c776
commit
6c7a493fd9
@ -399,6 +399,8 @@ class VoiceClient:
|
||||
try:
|
||||
p = subprocess.Popen(args, stdin=stdin, stdout=subprocess.PIPE)
|
||||
return ProcessPlayer(p, self, after)
|
||||
except FileNotFoundError as e:
|
||||
raise ClientException('ffmpeg/avconv was not found in your PATH environment variable') from e
|
||||
except subprocess.SubprocessError as e:
|
||||
raise ClientException('Popen failed: {0.__name__} {1}'.format(type(e), str(e))) from e
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user