From b0e5b1763a77b75a85af074722d780eb52a746f7 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 24 Apr 2009 22:13:10 +0000 Subject: [PATCH] Don't try to delete downloaded ZIP file if it doesn't exist --- chrome/content/zotero/xpcom/storage.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js index b76b4eef5..78392d8ac 100644 --- a/chrome/content/zotero/xpcom/storage.js +++ b/chrome/content/zotero/xpcom/storage.js @@ -1045,7 +1045,9 @@ Zotero.Sync.Storage = new function () { } catch (e) { Zotero.debug(zipFile.leafName + " is not a valid ZIP file", 2); - zipFile.remove(null); + if (zipFile.exists()) { + zipFile.remove(false); + } return; }