fix version lookup for internal plugin install; silence JSON parse debug noise

This commit is contained in:
2026-07-30 18:53:43 -04:00
parent f73fd14441
commit fb797f31e3
2 changed files with 4 additions and 3 deletions

View File

@@ -61,8 +61,9 @@ def get_version():
try: try:
import importlib.resources import importlib.resources
_parent_pkg = __package__.rpartition(".")[0] if __package__ else "bal"
data = ( data = (
importlib.resources.files("bal") importlib.resources.files(_parent_pkg)
.joinpath("manifest.json") .joinpath("manifest.json")
.read_text(encoding="utf-8") .read_text(encoding="utf-8")
) )

View File

@@ -348,8 +348,8 @@ class Willexecutors:
r = await resp.text() r = await resp.text()
try: try:
r = json.loads(r) r = json.loads(r)
except Exception as e: except json.JSONDecodeError:
_logger.debug(f"error handling response:{e}") pass
return r return r
@staticmethod @staticmethod