Skip to content

Commit 2d521a1

Browse files
committed
Superflous raise client error since it's already handled by self.get
1 parent 0850f43 commit 2d521a1

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

mergin/client.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -343,16 +343,8 @@ def workspace_service(self, workspace_id):
343343
344344
Returns response from server as JSON dict or None if endpoint is not found
345345
"""
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
346+
resp = self.get(f"/v1/workspace/{workspace_id}/service")
347+
return json.loads(resp)
356348

357349
def server_type(self):
358350
"""

0 commit comments

Comments
 (0)