Skip to content

Commit

Permalink
Merge pull request #606 from DuncanDHall/DuncanDHall-patch-search-error
Browse files Browse the repository at this point in the history
Patch search error
  • Loading branch information
jjjake authored Aug 23, 2023
2 parents ee89550 + 7eee5a9 commit 457f7bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internetarchive/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def _advanced_search(self):
auth=self.auth,
**self.request_kwargs)
j = r.json()
num_found = int(j['response']['numFound'])
num_found = int(j.get('response', {}).get('numFound', 0))
if not self._num_found:
self._num_found = num_found
if j.get('error'):
Expand Down

0 comments on commit 457f7bf

Please sign in to comment.