Wrap another showZoteroPaneProgressMeter call in a try/catch for safety
This commit is contained in:
parent
8383c5cda8
commit
a4afb8c0c3
1 changed files with 10 additions and 3 deletions
|
@ -570,9 +570,16 @@ Components.utils.import("resource://gre/modules/osfile.jsm");
|
|||
|
||||
try {
|
||||
var updated = yield Zotero.Schema.updateSchema({
|
||||
onBeforeUpdate: () => Zotero.showZoteroPaneProgressMeter(
|
||||
Zotero.getString('upgrade.status')
|
||||
)
|
||||
onBeforeUpdate: () => {
|
||||
try {
|
||||
Zotero.showZoteroPaneProgressMeter(
|
||||
Zotero.getString('upgrade.status')
|
||||
)
|
||||
}
|
||||
catch (e) {
|
||||
Zotero.logError(e);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
catch (e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue