Skip to content

Commit

Permalink
Merge pull request #497 from cclauss/patch-1
Browse files Browse the repository at this point in the history
Search._scrape() verify that num_found is an int
  • Loading branch information
jjjake authored Apr 11, 2022
2 parents 130f4a1 + da334d7 commit 2456376
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 @@ -148,7 +148,7 @@ def _scrape(self):
j = r.json()
if j.get('error'):
yield j
num_found = j['total']
num_found = int(j['total'])
self._handle_scrape_error(j)

self.params['cursor'] = j.get('cursor')
Expand Down

0 comments on commit 2456376

Please sign in to comment.