From fb797f31e3e08e6b2fd9f85f63fceeb70fdc1275 Mon Sep 17 00:00:00 2001 From: svatantrya Date: Thu, 30 Jul 2026 18:53:43 -0400 Subject: [PATCH] fix version lookup for internal plugin install; silence JSON parse debug noise --- bal/core/plugin_base.py | 3 ++- bal/core/willexecutors.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bal/core/plugin_base.py b/bal/core/plugin_base.py index 0c4d42e..f3d17bd 100644 --- a/bal/core/plugin_base.py +++ b/bal/core/plugin_base.py @@ -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") ) diff --git a/bal/core/willexecutors.py b/bal/core/willexecutors.py index 15e4747..e4d3802 100644 --- a/bal/core/willexecutors.py +++ b/bal/core/willexecutors.py @@ -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