Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update deprecated imports from ovos-utils #36

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions ovos_messagebus/event_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
import sys
import traceback

from ovos_utils.fakebus import Message
from ovos_utils.log import LOG
from ovos_bus_client.message import Message
from ovos_bus_client.session import SessionManager
from ovos_config import Configuration
from ovos_utils.log import LOG
from pyee import EventEmitter
from tornado.websocket import WebSocketHandler
from ovos_bus_client.session import SessionManager

client_connections = []

Expand Down Expand Up @@ -63,13 +63,12 @@ def on_message(self, message):

if deserialized_message.msg_type not in self.filter_logs:
LOG.debug(deserialized_message.msg_type +
f' source: {deserialized_message.context.get("source", [])}' +
f' destination: {deserialized_message.context.get("destination", [])}\n'
f'SESSION: {SessionManager.get(deserialized_message).serialize()}')
f' source: {deserialized_message.context.get("source", [])}' +
f' destination: {deserialized_message.context.get("destination", [])}\n'
f'SESSION: {SessionManager.get(deserialized_message).serialize()}')

try:
self.emitter.emit(deserialized_message.msg_type,
deserialized_message)
self.emitter.emit(deserialized_message.msg_type, deserialized_message)
except Exception as e:
LOG.exception(e)
traceback.print_exc(file=sys.stdout)
Expand Down
Loading