fixes: Mode test connection returns data in dict instead of json (#18386)

This commit is contained in:
Ayush Shah 2024-10-24 11:11:39 +05:30
parent 010761ed5c
commit fca9bb0a4f

View File

@ -197,9 +197,8 @@ class ModeApiClient:
"""
try:
response = self.client.get(f"/{workspace_name}")
return response.json()
return response
except Exception as exc: # pylint: disable=broad-except
logger.debug(traceback.format_exc())
logger.warning(f"Error testing workspace connection: {exc}")
return None
raise exc