summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--combox/silo.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/combox/silo.py b/combox/silo.py
index 21b473d..e08eafc 100644
--- a/combox/silo.py
+++ b/combox/silo.py
@@ -66,7 +66,11 @@ class ComboxSilo(object):
filep: path to the file in combox directory.
"""
- return self.db.rem(filep)
+ try:
+ return self.db.rem(filep)
+ except KeyError, e:
+ # means `filep' not present in db.
+ return False
def exists(self, filep):