summaryrefslogtreecommitdiffstats
path: root/backend.py
diff options
context:
space:
mode:
authorGravatar ryuslash2010-04-22 22:24:38 +0200
committerGravatar ryuslash2010-04-22 22:24:38 +0200
commitef79c9991b55975157607c6d7b0cca52a6929023 (patch)
tree3baf1307ce5700189c7bb7e7a3b43705dbfcbe10 /backend.py
parent99b87aeffb9412ad7a0cc1f795fd6af89cf4eb76 (diff)
download4grab-ef79c9991b55975157607c6d7b0cca52a6929023.tar.gz
4grab-ef79c9991b55975157607c6d7b0cca52a6929023.zip
Nasty bug where it didn't actually save anything
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])