diff options
| author | Rapptz <[email protected]> | 2016-01-16 21:46:11 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-01-16 21:46:11 -0500 |
| commit | 6c7a493fd90b5940f7c7ecbb808a24261d884abb (patch) | |
| tree | 437709a94a5b2d67c8347923ef41533bd8232b8d | |
| parent | [commands] Add checks for checking bot roles and permissions. (diff) | |
| download | discord.py-6c7a493fd90b5940f7c7ecbb808a24261d884abb.tar.xz discord.py-6c7a493fd90b5940f7c7ecbb808a24261d884abb.zip | |
Raise a different exception if ffmpeg is not found in PATH.
| -rw-r--r-- | discord/voice_client.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/discord/voice_client.py b/discord/voice_client.py index 3faa770c..8387afb3 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 |