diff --git a/ovos_plugin_manager/coreference.py b/ovos_plugin_manager/coreference.py index 7dcf85af..7dfcf397 100644 --- a/ovos_plugin_manager/coreference.py +++ b/ovos_plugin_manager/coreference.py @@ -102,7 +102,8 @@ def create(config=None): clazz = OVOSCoreferenceSolverFactory.get_class(config) return clazz(plugin_config) except Exception: - LOG.error(f'CoreferenceSolver plugin {plugin} could not be loaded!') + LOG.exception(f'CoreferenceSolver plugin {plugin} ' + f'could not be loaded!') raise diff --git a/ovos_plugin_manager/keywords.py b/ovos_plugin_manager/keywords.py index 52721d93..353832a9 100644 --- a/ovos_plugin_manager/keywords.py +++ b/ovos_plugin_manager/keywords.py @@ -100,7 +100,8 @@ def create(config=None): clazz = OVOSKeywordExtractorFactory.get_class(config) return clazz(plugin_config) except Exception: - LOG.error(f'Keyword extraction plugin {plugin} could not be loaded!') + LOG.exception(f'Keyword extraction plugin {plugin} ' + f'could not be loaded!') return KeywordExtractor() diff --git a/ovos_plugin_manager/ocp.py b/ovos_plugin_manager/ocp.py index 8445f8a4..d12969a8 100644 --- a/ovos_plugin_manager/ocp.py +++ b/ovos_plugin_manager/ocp.py @@ -73,8 +73,8 @@ def extract_stream(self, uri, video=True): return meta or {"uri": uri} -if __name__ == "__main__": - s = StreamHandler() - print(s.supported_seis) - # ['rss', 'bandcamp', 'youtube', 'ydl', 'youtube.channel.live', - # 'pytube', 'invidious', 'm3u', 'pls'] \ No newline at end of file +# if __name__ == "__main__": +# s = StreamHandler() +# print(s.supported_seis) +# # ['rss', 'bandcamp', 'youtube', 'ydl', 'youtube.channel.live', +# # 'pytube', 'invidious', 'm3u', 'pls'] \ No newline at end of file diff --git a/ovos_plugin_manager/postag.py b/ovos_plugin_manager/postag.py index deefce9a..ebaba375 100644 --- a/ovos_plugin_manager/postag.py +++ b/ovos_plugin_manager/postag.py @@ -103,7 +103,7 @@ def create(config=None): clazz = OVOSPosTaggerFactory.get_class(config) return clazz(plugin_config) except Exception: - LOG.error(f'Postag plugin {plugin} could not be loaded!') + LOG.exception(f'Postag plugin {plugin} could not be loaded!') return PosTagger() diff --git a/ovos_plugin_manager/segmentation.py b/ovos_plugin_manager/segmentation.py index a0b7f8a8..0d47fbb0 100644 --- a/ovos_plugin_manager/segmentation.py +++ b/ovos_plugin_manager/segmentation.py @@ -102,7 +102,8 @@ def create(config=None): clazz = OVOSUtteranceSegmenterFactory.get_class(config) return clazz(plugin_config) except Exception: - LOG.error(f'Utterance Segmentation plugin {plugin} could not be loaded!') + LOG.exception(f'Utterance Segmentation plugin {plugin} ' + f'could not be loaded!') return Segmenter() diff --git a/ovos_plugin_manager/tokenization.py b/ovos_plugin_manager/tokenization.py index 85a0a5c7..8fad6ac8 100644 --- a/ovos_plugin_manager/tokenization.py +++ b/ovos_plugin_manager/tokenization.py @@ -103,7 +103,7 @@ def create(config=None): clazz = OVOSTokenizerFactory.get_class(config) return clazz(plugin_config) except Exception: - LOG.error(f'Tokenizer plugin {plugin} could not be loaded!') + LOG.exception(f'Tokenizer plugin {plugin} could not be loaded!') return Tokenizer() diff --git a/ovos_plugin_manager/vad.py b/ovos_plugin_manager/vad.py index 103b2989..cfed63db 100644 --- a/ovos_plugin_manager/vad.py +++ b/ovos_plugin_manager/vad.py @@ -74,7 +74,7 @@ def create(config=None): clazz = OVOSVADFactory.get_class(config) return clazz(plugin_config) except Exception: - LOG.error(f'VAD plugin {plugin} could not be loaded!') + LOG.exception(f'VAD plugin {plugin} could not be loaded!') raise diff --git a/ovos_plugin_manager/wakewords.py b/ovos_plugin_manager/wakewords.py index f25b011e..6a9c1a9e 100644 --- a/ovos_plugin_manager/wakewords.py +++ b/ovos_plugin_manager/wakewords.py @@ -101,8 +101,9 @@ def create_hotword(cls, hotword="hey mycroft", config=None, module = ww_config.get("module", "pocketsphinx") try: return cls.load_module(module, hotword, ww_config, lang, loop) - except: + except Exception as e: LOG.error(f"Failed to load hotword: {hotword} - {module}") + LOG.exception(e) fallback_ww = ww_config.get("fallback_ww") if fallback_ww in ww_configs and fallback_ww != hotword: LOG.info(f"Attempting to load fallback ww instead: {fallback_ww}")