Include trace in import failure errors

This commit is contained in:
Chad Condon
2024-06-16 12:24:43 -07:00
parent 41f107548f
commit 2f6ec1d3b0
+2 -2
View File
@@ -308,14 +308,14 @@ async def main() -> None:
try:
import webrtc_noise_gain # noqa: F401
except ImportError:
_LOGGER.fatal("Install extras for webrtc")
_LOGGER.exception("Install extras for webrtc")
sys.exit(1)
if needs_silero(args):
try:
import pysilero_vad # noqa: F401
except ImportError:
_LOGGER.fatal("Install extras for silerovad")
_LOGGER.exception("Install extras for silerovad")
sys.exit(1)
if args.awake_wav and (not Path(args.awake_wav).is_file()):