File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 4
4
license = " MIT"
5
5
name = " pyrobbot"
6
6
readme = " README.md"
7
- version = " 0.7.1 "
7
+ version = " 0.7.2 "
8
8
9
9
[build-system ]
10
10
build-backend = " poetry.core.masonry.api"
Original file line number Diff line number Diff line change 38
38
with contextlib .suppress (pydub .exceptions .CouldntDecodeError ):
39
39
AudioSegment .from_mp3 (io .BytesIO ())
40
40
except (ImportError , OSError , FileNotFoundError ) as error :
41
- logger .error (
42
- "{}. Can't use module `pydub`. Please check your system's ffmpeg install." , error
43
- )
44
- _pydub_imported = False
41
+ logger .exception (error )
42
+ logger .error ("Can't use module `pydub`. Please check your system's ffmpeg install." )
43
+ _pydub_usable = False
45
44
else :
46
- _pydub_imported = True
45
+ _pydub_usable = True
47
46
48
47
49
48
class VoiceChat (Chat ):
@@ -520,9 +519,10 @@ def _check_needed_imports():
520
519
"Module `sounddevice`, needed for local audio recording, is not available."
521
520
)
522
521
523
- if not _pydub_imported :
524
- raise ImportError (
525
- "Module `pydub`, needed for audio conversion, is not available."
522
+ if not _pydub_usable :
523
+ logger .error (
524
+ "Module `pydub`, needed for audio conversion, doesn't seem to be working. "
525
+ "Voice chat may not be available or may not work as expected."
526
526
)
527
527
528
528
You can’t perform that action at this time.
0 commit comments