mirror of
https://github.com/zotero/zotero.git
synced 2026-08-28 05:25:31 +00:00
Don't fail translation on open-access lookup error
This commit is contained in:
parent
7abcf23ef7
commit
4ec5ba9c27
1 changed files with 9 additions and 3 deletions
|
|
@ -403,9 +403,15 @@ Zotero.Translate.ItemSaver.prototype = {
|
|||
// Translated attachment failed, so we didn't check for OA PDFs yet and didn't
|
||||
// update the status line
|
||||
// Look for OA PDFs now
|
||||
resolvers = await this._getURLObjectsFromResolvers(
|
||||
Zotero.Attachments.getPDFResolvers(item, ['oa'])
|
||||
);
|
||||
try {
|
||||
resolvers = await this._getURLObjectsFromResolvers(
|
||||
Zotero.Attachments.getPDFResolvers(item, ['oa'])
|
||||
);
|
||||
}
|
||||
catch (e) {
|
||||
Zotero.logError(e);
|
||||
resolvers = [];
|
||||
}
|
||||
|
||||
// Add custom resolvers
|
||||
resolvers.push(...Zotero.Attachments.getPDFResolvers(item, ['custom'], true));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue