changeset 1300:59dca7bc1d0f

Fixed IOError in the TagStore.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Tue, 15 Aug 2006 23:50:54 +0200
parents 6bbd177f5b36
children c53381d8527f
files MoinMoin/wikisync.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/wikisync.py	Tue Aug 15 23:31:55 2006 +0200
+++ b/MoinMoin/wikisync.py	Tue Aug 15 23:50:54 2006 +0200
@@ -388,10 +388,10 @@
         """ Loads the tags from the data file. """
         try:
             datafile = file(self.filename, "rb")
+            self.tags = pickle.load(datafile)
         except IOError:
             self.tags = []
         else:
-            self.tags = pickle.load(datafile)
             datafile.close()
     
     def commit(self):