Skip to content

Commit

Permalink
πŸ› Fix bug in sophora scraper
Browse files Browse the repository at this point in the history
  • Loading branch information
jh0ker committed Jan 23, 2024
1 parent 5a409ba commit 9b86f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion okr/scrapers/pages/sophora.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def get_documents_in_node(
response_data = response.json()
yield from response_data["data"]

if response_data["moreLink"] is None:
if "moreLink" not in response_data or response_data["moreLink"] is None:
break
else:
url = response_data["moreLink"]["moreUrl"]
Expand Down

0 comments on commit 9b86f81

Please sign in to comment.