Merge pull request #1748 from OpenRefine/issue1746
Temporary fix for HTTP 500 errors from Wikibase. Closes #1746
This commit is contained in:
commit
fc794f97b7
@ -192,7 +192,8 @@ public class EditBatchProcessor {
|
|||||||
logger.info("Requesting documents");
|
logger.info("Requesting documents");
|
||||||
currentDocs = null;
|
currentDocs = null;
|
||||||
int retries = 3;
|
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 {
|
try {
|
||||||
currentDocs = fetcher.getEntityDocuments(qidsToFetch);
|
currentDocs = fetcher.getEntityDocuments(qidsToFetch);
|
||||||
} catch (MediaWikiApiErrorException e) {
|
} catch (MediaWikiApiErrorException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user