summaryrefslogtreecommitdiffstats
path: root/backend.py
diff options
context:
space:
mode:
Diffstat (limited to 'backend.py')
-rw-r--r--backend.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/backend.py b/backend.py
index 8dffb3e..f2f2a1b 100644
--- a/backend.py
+++ b/backend.py
@@ -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])