Closed lucaswerkmeister closed 4 years ago
I also suspect there’s a bug in the continuation example:
for portion in continued:
try:
if 'query' in portion:
for page in portion['query']['pages']:
pages.append(page['title'])
else:
print("Mediwiki returned empty result batch.")
except APIError:
raise ValueError(
"MediaWiki returned an error:", str(APIError)
)
If there is an API error, it wouldn’t be raised in the section guarded by the try
, but elsewhere, right? (cc @yurkobb)
Looks good to me.
Thanks for the cleanup!
Thanks for merging!
Fix a typo, update a link to HTTPS and lightly rephrase the first paragraph.