Skip to content

Commit

Permalink
fix: update deprecated imports from ovos-utils (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Nov 21, 2024
1 parent f3eac0f commit 58c5674
Showing 1 changed file with 7 additions and 8 deletions.
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

0 comments on commit 58c5674

Please sign in to comment.