Skip to content

Commit 8855b4c

Browse files
author
himanshu
committed
.
1 parent 4993d55 commit 8855b4c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

newsdataapi/newsdataapi_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def __get_feeds(self, endpoint: str, query_params: dict) -> Dict[str, Any]:
145145
if (
146146
response.status_code == 200
147147
and feeds_data.get('status') == 'success'
148-
and feeds_data.get('results') is not None
148+
and (feeds_data.get('results') is not None or feeds_data.get('result') is not None)
149149
):
150150
if self.include_headers:
151151
feeds_data['response_headers'] = dict(response.headers)

0 commit comments

Comments
 (0)