From 2f6ec1d3b05bcc7cfd89cc08167e723f51b4c516 Mon Sep 17 00:00:00 2001 From: Chad Condon Date: Sun, 16 Jun 2024 12:24:43 -0700 Subject: [PATCH 1/2] Include trace in import failure errors --- wyoming_satellite/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wyoming_satellite/__main__.py b/wyoming_satellite/__main__.py index f878081..087f6f2 100644 --- a/wyoming_satellite/__main__.py +++ b/wyoming_satellite/__main__.py @@ -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()): From c6d1dec91801fc2056c5df979cd7e662fd4cb185 Mon Sep 17 00:00:00 2001 From: Chad Condon Date: Sun, 16 Jun 2024 12:26:27 -0700 Subject: [PATCH 2/2] Clarify import error message --- wyoming_satellite/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wyoming_satellite/__main__.py b/wyoming_satellite/__main__.py index 087f6f2..4cff57b 100644 --- a/wyoming_satellite/__main__.py +++ b/wyoming_satellite/__main__.py @@ -308,14 +308,14 @@ async def main() -> None: try: import webrtc_noise_gain # noqa: F401 except ImportError: - _LOGGER.exception("Install extras for webrtc") + _LOGGER.exception("Extras for webrtc are not installed") sys.exit(1) if needs_silero(args): try: import pysilero_vad # noqa: F401 except ImportError: - _LOGGER.exception("Install extras for silerovad") + _LOGGER.exception("Extras for silerovad are not installed") sys.exit(1) if args.awake_wav and (not Path(args.awake_wav).is_file()):