Skip to content

Commit 4c9dac9

Browse files
committed
Fix for [sc-110446]
1 parent 3745cbb commit 4c9dac9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

python-lib/rest_api_recipe_session.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ def format_page_rows(self, data_rows, is_raw_output, metadata=None):
124124

125125

126126
def is_error_message(jsons_response):
127+
if type(jsons_response) not in [dict, list]:
128+
return False
127129
if "error" in jsons_response and len(jsons_response) == 1:
128130
return True
129131
else:

0 commit comments

Comments
 (0)