Fix upgrade error for custom styles with invalid ids

This commit is contained in:
Dan Stillman 2010-04-01 18:01:11 +00:00
parent b31e47c504
commit bd7ff9c2c6

View file

@ -2343,10 +2343,16 @@ Zotero.Schema = new function(){
if (!matches) {
continue;
}
file.append(matches[1]);
Zotero.debug("Extracting styles '" + matches[1] + "' from database");
Zotero.File.putContents(file, row.csl);
Zotero.wait();
try {
Zotero.debug("Extracting styles '" + matches[1] + "' from database");
file.append(matches[1]);
Zotero.File.putContents(file, row.csl);
Zotero.wait();
}
catch (e) {
Zotero.debug(e);
Components.utils.reportError("Skipping style '" + matches[1] + "'");
}
}
Zotero.Styles.init();
}