fix: Add traceback import for detailed error reporting on opuslib import failure
This commit is contained in:
parent
f463066bb9
commit
743dd21860
@ -22,7 +22,9 @@ try:
|
||||
from opuslib import Decoder as OpusDecoder
|
||||
from opuslib import OPUS_APPLICATION_VOIP, OPUS_SIGNAL_VOICE
|
||||
except ImportError:
|
||||
import traceback
|
||||
print("opuslib library not found. Please install with 'pip install opuslib' (requires Opus C library).")
|
||||
print(f"Import error traceback: {traceback.format_exc()}")
|
||||
OpusDecoder = None
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user