Skip to content
Merged
Show file tree
Hide file tree
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
Empty file added ovos_logs_console_script
Empty file.
14 changes: 8 additions & 6 deletions ovos_utils/fakebus.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,10 @@
try: # replicate side effects
from ovos_bus_client.session import Session, SessionManager
sess = Session.from_message(parsed_message)
if sess.session_id != "default":
# 'default' can only be updated by core
SessionManager.update(sess)
# every session — including the default id — folds onto the singleton
# (value-passing; nothing is owner-only, matching the spec-tools
# SessionManager and the real MessageBusClient)
SessionManager.update(sess)
except ImportError:
pass # don't care

Expand Down Expand Up @@ -273,7 +274,7 @@
# dependency, the canonical class is always present, and
# ``ovos-bus-client.Message`` is the **same** class (bus-client attaches
# ``publish`` to it too — both attachments are idempotent).
from typing import Any, Dict, Optional

Check failure on line 277 in ovos_utils/fakebus.py

View workflow job for this annotation

GitHub Actions / lint / lint

ruff (E402)

ovos_utils/fakebus.py:277:1: E402 Module level import not at top of file

from ovos_spec_tools.message import Message as FakeMessage
from ovos_utils.log import deprecated
Expand Down Expand Up @@ -498,9 +499,10 @@
try: # replicate side effects
from ovos_bus_client.session import Session, SessionManager
sess = Session.from_message(parsed_message)
if sess.session_id != "default":
# 'default' can only be updated by core
SessionManager.update(sess)
# every session — including the default id — folds onto the singleton
# (value-passing; nothing is owner-only, matching the spec-tools
# SessionManager and the real MessageBusClient)
SessionManager.update(sess)
except ImportError:
pass # don't care

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ extras = [
"ovos-plugin-manager>=0.0.25",
"ovos-config>=0.0.12",
"ovos-workshop>=0.0.13",
"ovos_bus_client>=0.0.8",
"ovos_bus_client>=2.6.2a2",
"langcodes",
"timezonefinder",
"oauthlib~=3.2",
Expand Down
Loading