mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-08 10:53:10 +00:00
Print exception tracebacks in voice threads
Errors occurring within `AudioSource.read()` and `after()` functions will now display their tracebacks as if they were unhandled exceptions.
This commit is contained in:
@ -338,7 +338,8 @@ class VoiceClient:
|
||||
or an error occurred.
|
||||
|
||||
If an error happens while the audio player is running, the exception is
|
||||
caught and the audio player is then stopped.
|
||||
caught and the audio player is then stopped. If no after callback is
|
||||
passed, any caught exception will be displayed as if it were raised.
|
||||
|
||||
Parameters
|
||||
-----------
|
||||
@ -346,9 +347,8 @@ class VoiceClient:
|
||||
The audio source we're reading from.
|
||||
after: Callable[[:class:`Exception`], Any]
|
||||
The finalizer that is called after the stream is exhausted.
|
||||
All exceptions it throws are silently discarded. This function
|
||||
must have a single parameter, ``error``, that denotes an
|
||||
optional exception that was raised during playing.
|
||||
This function must have a single parameter, ``error``, that
|
||||
denotes an optional exception that was raised during playing.
|
||||
|
||||
Raises
|
||||
-------
|
||||
|
Reference in New Issue
Block a user