Temporary fix for HTTP 500 errors from Wikibase. Closes #1746

This commit is contained in:
Antonin Delpeuch 2018-09-25 19:37:40 +01:00
parent ec3e9ab1e9
commit b6e9ace597

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) {