Skip to content

Commit

Permalink
handle old ovos-plugin-manager versions
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Jan 29, 2025
1 parent 1f05583 commit d4ac797
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ovos_core/intent_services/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,11 @@ def _emit_match_message(self, match: Union[IntentHandlerMatch, PipelineMatch], m
None
"""
reply = None
sess = match.updated_session or SessionManager.get(message)
try:
sess = match.updated_session or SessionManager.get(message)
except AttributeError: # old ovos-plugin-manager version
LOG.warning("outdated ovos-plugin-manager detected! please update to version 0.8.0")
sess = SessionManager.get(message)
sess.lang = lang # ensure it is updated

# utterance fully handled by pipeline matcher
Expand Down

0 comments on commit d4ac797

Please sign in to comment.