Fix bug with async translate process never returning. (#1910)

When using `doImport` a promise is returned, but was lacking a catch a
statement to ensure completion.

This fixes #1882
This commit is contained in:
fletcherhaz 2020-10-29 00:30:47 -06:00 committed by GitHub
parent 7602ee68db
commit d16512c84f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1363,6 +1363,7 @@ Zotero.Translate.Base.prototype = {
if (maybePromise) {
maybePromise
.then(() => this.decrementAsyncProcesses("Zotero.Translate#translate()"))
.catch(e => this.complete(false, e));
return;
}
} catch (e) {