Skip to content

Commit

Permalink
Fix using json module load from onject instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinBuira committed Dec 6, 2024
1 parent 8716eec commit cd2d56c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mergin/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def workspace_service(self, workspace_id):
Returns response from server as JSON dict or None if endpoint is not found
"""
resp = self.get(f"/v1/workspace/{workspace_id}/service")
return json.loads(resp)
return json.load(resp)

def workspace_usage(self, workspace_id):
"""
Expand Down

0 comments on commit cd2d56c

Please sign in to comment.