Skip to content

Commit 433fc05

Browse files
committed
coderabbit suggestions
1 parent 464a4e1 commit 433fc05

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ovos_core/intent_services/service.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,12 +587,14 @@ def shutdown(self):
587587
if hasattr(pipeline, "stop"):
588588
try:
589589
pipeline.stop()
590-
except:
590+
except Exception as e:
591+
LOG.warning(f"Failed to stop pipeline {pipeline}: {e}")
591592
continue
592593
if hasattr(pipeline, "shutdown"):
593594
try:
594595
pipeline.shutdown()
595-
except:
596+
except Exception as e:
597+
LOG.warning(f"Failed to shutdown pipeline {pipeline}: {e}")
596598
continue
597599

598600
self.bus.remove('recognizer_loop:utterance', self.handle_utterance)

ovos_core/intent_services/stop_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from ovos_utils.fakebus import FakeBus
1616
from ovos_utils.bracket_expansion import expand_template
1717
from ovos_utils.lang import standardize_lang_tag
18-
from ovos_utils.log import LOG, deprecated
18+
from ovos_utils.log import LOG
1919
from ovos_utils.parse import match_one
2020

2121

0 commit comments

Comments
 (0)