Don't try to delete downloaded ZIP file if it doesn't exist
This commit is contained in:
parent
67ea216095
commit
b0e5b1763a
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue