Clarify import error message

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