Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--FileShare.activity/journalentrybundle.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/FileShare.activity/journalentrybundle.py b/FileShare.activity/journalentrybundle.py
index a302b81..f8f9d26 100644
--- a/FileShare.activity/journalentrybundle.py
+++ b/FileShare.activity/journalentrybundle.py
@@ -82,7 +82,10 @@ class JournalEntryBundle(Bundle):
return zip_root_dir
def set_entry_id(self, entry_id):
- zip_file = zipfile.ZipFile(self._path,'a')
+ try:
+ zip_file = zipfile.ZipFile(self._path,'a')
+ except:
+ zip_file = zipfile.ZipFile(self._path,'w')
file_names = zip_file.namelist()
if len(file_names) == 0:
base_dir = zipfile.ZipInfo(entry_id + '/')