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:
parent
7602ee68db
commit
d16512c84f
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue