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:
import importlib.resources
_parent_pkg = __package__.rpartition(".")[0] if __package__ else "bal"
data = (
importlib.resources.files("bal")
importlib.resources.files(_parent_pkg)
.joinpath("manifest.json")
.read_text(encoding="utf-8")
)

View File

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