mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-15 02:13:44 +00:00
fixes: Mode test connection returns data in dict instead of json (#18386)
This commit is contained in:
parent
010761ed5c
commit
fca9bb0a4f
@ -197,9 +197,8 @@ class ModeApiClient:
|
|||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
response = self.client.get(f"/{workspace_name}")
|
response = self.client.get(f"/{workspace_name}")
|
||||||
return response.json()
|
return response
|
||||||
except Exception as exc: # pylint: disable=broad-except
|
except Exception as exc: # pylint: disable=broad-except
|
||||||
logger.debug(traceback.format_exc())
|
logger.debug(traceback.format_exc())
|
||||||
logger.warning(f"Error testing workspace connection: {exc}")
|
logger.warning(f"Error testing workspace connection: {exc}")
|
||||||
|
raise exc
|
||||||
return None
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user