www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit b0e5b1763a77b75a85af074722d780eb52a746f7
parent 67ea2160959a5500f31bf86ce34a19184725b2d6
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 24 Apr 2009 22:13:10 +0000

Don't try to delete downloaded ZIP file if it doesn't exist


Diffstat:
Mchrome/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 @@ -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; }