Skip to content

Commit f3e5510

Browse files
authored
Merge pull request #11 from JacobCallahan/master
Handle case where no data is returned
2 parents 4f58983 + 4cf82c1 commit f3e5510

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ settings.yaml
44
*.csv
55
.idea
66
trust
7+
venv*

candore/modules/extractor.py

+2
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ async def fetch_component_entities(self, **comp_params):
7676
# like services, api etc
7777
# which does not have results
7878
return entity_data
79+
else:
80+
return entity_data
7981
# If the entity has multiple pages, fetch them all
8082
if self.full:
8183
total_pages = results.get("total") // results.get("per_page") + 1

0 commit comments

Comments
 (0)