Skip to content

Commit

Permalink
bug fix in load
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiasakesson committed Sep 26, 2023
1 parent 9eb669f commit 2d55b25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fedn/fedn/utils/plugins/androidhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2d55b25

Please sign in to comment.