Skip to content

Commit 4935aa2

Browse files
committed
quick fix for path to array pointing to str
1 parent ca8038e commit 4935aa2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python-lib/rest_api_recipe_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def retrieve_next_page(self, is_raw_output):
8484
is_api_returning_dict = True
8585
if self.extraction_key:
8686
data_rows = get_value_from_path(json_response, self.extraction_key.split("."), can_raise=False)
87-
if data_rows is None:
87+
if data_rows is None or type(data_rows) != list:
8888
if self.behaviour_when_error == "ignore":
8989
return []
9090
error_message = "Extraction key '{}' was not found in the incoming data".format(self.extraction_key)

0 commit comments

Comments
 (0)