We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0850f43 commit 2d521a1Copy full SHA for 2d521a1
mergin/client.py
@@ -343,16 +343,8 @@ def workspace_service(self, workspace_id):
343
344
Returns response from server as JSON dict or None if endpoint is not found
345
"""
346
-
347
- try:
348
- response = self.get(f"/v1/workspace/{workspace_id}/service")
349
- except ClientError as e:
350
- e.extra = f"Unable to query for /workspace/{workspace_id}/service endpoint"
351
- raise e
352
353
- response = json.loads(response.read())
354
355
- return response
+ resp = self.get(f"/v1/workspace/{workspace_id}/service")
+ return json.loads(resp)
356
357
def server_type(self):
358
0 commit comments