Merge pull request #1748 from OpenRefine/issue1746

Temporary fix for HTTP 500 errors from Wikibase. Closes #1746
This commit is contained in:
Antonin Delpeuch 2018-10-02 12:33:14 +01:00 committed by GitHub
commit fc794f97b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,7 +192,8 @@ public class EditBatchProcessor {
logger.info("Requesting documents");
currentDocs = null;
int retries = 3;
while (currentDocs == null && retries > 0) {
// TODO: remove currentDocs.isEmpty() once https://github.com/Wikidata/Wikidata-Toolkit/issues/402 is solved
while ((currentDocs == null || currentDocs.isEmpty()) && retries > 0) {
try {
currentDocs = fetcher.getEntityDocuments(qidsToFetch);
} catch (MediaWikiApiErrorException e) {