From b83c93457ff73a02ba48e5422386b3c1b0534abe Mon Sep 17 00:00:00 2001 From: Siddharth Ravikumar Date: Wed, 18 Mar 2015 21:42:44 -0400 Subject: combox/silo.py: modded remove method in ComboxSilo The statement that removes the key from db is now put in a try-catch f#*king block. --- combox/silo.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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): -- cgit v1.2.3