More rearrangement to prevent crash on error
This commit is contained in:
parent
f01ab3ffa4
commit
5a7c7368b7
|
@ -322,8 +322,6 @@ Zotero.Integration = new function() {
|
||||||
* Show appropriate dialogs for an integration error
|
* Show appropriate dialogs for an integration error
|
||||||
*/
|
*/
|
||||||
this.handleError = function(e, document) {
|
this.handleError = function(e, document) {
|
||||||
this.complete(document);
|
|
||||||
|
|
||||||
if(!(e instanceof Zotero.Integration.UserCancelledException)) {
|
if(!(e instanceof Zotero.Integration.UserCancelledException)) {
|
||||||
try {
|
try {
|
||||||
var displayError = null;
|
var displayError = null;
|
||||||
|
@ -378,6 +376,8 @@ Zotero.Integration = new function() {
|
||||||
Zotero.logError(e);
|
Zotero.logError(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.complete(document);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user