diff options
Diffstat (limited to 'backend.py')
-rw-r--r-- | backend.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -34,7 +34,9 @@ class _Backend(object): return False def save(self): - os.remove(self.table) + if os.path.exists(self.table): + os.remove(self.table) + self.create_store_if_needed() for f in self.__new_collection: self.store.insert(self.table, [f]) |