Skip to content

Commit aebbc48

Browse files
Added exception handling on internal connection_fetch_live_columns about the config_json_string, which is optional on the Public form of the API
1 parent e7cc1d5 commit aebbc48

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/thoughtspot_rest_api_v1/tsrestapiv1.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1863,6 +1863,8 @@ def connection_fetch_live_columns(self, connection_guid, database_name: str,
18631863

18641864
if use_internal_endpoint is True:
18651865
url = self.non_public_base_url + endpoint
1866+
if config_json_string is None:
1867+
raise Exception('The config_json_string (a JSON object converted to string using json.dumps() ) is required')
18661868
else:
18671869
url = self.base_url + endpoint
18681870
tables = [{"databaseName": database_name,

0 commit comments

Comments
 (0)