fix version lookup for internal plugin install; silence JSON parse debug noise
This commit is contained in:
@@ -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")
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user