Skip to content

Commit

Permalink
Merge pull request #11 from JacobCallahan/master
Browse files Browse the repository at this point in the history
Handle case where no data is returned
  • Loading branch information
jyejare authored Feb 22, 2024
2 parents 4f58983 + 4cf82c1 commit f3e5510
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ settings.yaml
*.csv
.idea
trust
venv*
2 changes: 2 additions & 0 deletions candore/modules/extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ async def fetch_component_entities(self, **comp_params):
# like services, api etc
# which does not have results
return entity_data
else:
return entity_data
# If the entity has multiple pages, fetch them all
if self.full:
total_pages = results.get("total") // results.get("per_page") + 1
Expand Down

0 comments on commit f3e5510

Please sign in to comment.