From 2d55b25ae45187635eefbf514749b29080f7d80a Mon Sep 17 00:00:00 2001 From: mattiasakesson Date: Tue, 26 Sep 2023 19:25:37 +0200 Subject: [PATCH] bug fix in load --- fedn/fedn/utils/plugins/androidhelper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fedn/fedn/utils/plugins/androidhelper.py b/fedn/fedn/utils/plugins/androidhelper.py index c78849115..cca6e299a 100644 --- a/fedn/fedn/utils/plugins/androidhelper.py +++ b/fedn/fedn/utils/plugins/androidhelper.py @@ -74,7 +74,8 @@ def load(self, fh): :param fh: file path, filehandle, filelike. :return: List of weights in json format. """ - weights = json.loads(fh) + with open(fh) as openfile: + weights = json.load(openfile) return weights