diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js index 60d0697310..b030ba9fb9 100644 --- a/chrome/content/zotero/xpcom/storage.js +++ b/chrome/content/zotero/xpcom/storage.js @@ -413,7 +413,14 @@ Zotero.Sync.Storage = new function () { (item.libraryID ? item.libraryID : 0) + '/' + item.key, callbacks ); if (queue.type == 'upload') { - request.setMaxSize(Zotero.Attachments.getTotalFileSize(item)); + try { + request.setMaxSize(Zotero.Attachments.getTotalFileSize(item)); + } + // If this fails, it's no big deal, though we might fail later + catch (e) { + Components.utils.reportError(e); + Zotero.debug(e, 1); + } } queue.addRequest(request, highPriority); };