From 6c7a493fd90b5940f7c7ecbb808a24261d884abb Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 16 Jan 2016 21:46:11 -0500 Subject: [PATCH] Raise a different exception if ffmpeg is not found in PATH. --- discord/voice_client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discord/voice_client.py b/discord/voice_client.py index 3faa770c3..8387afb30 100644 --- a/discord/voice_client.py +++ b/discord/voice_client.py @@ -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