combox

split and encrypted files between online file storage providers
git clone git://git.ricketyspace.net/combox.git
Log | Files | Refs

commit b83c93457ff73a02ba48e5422386b3c1b0534abe
parent 427233bd9ac3a51c5e0d4df70e0b6c0bedd0ea56
Author: Siddharth Ravikumar <sravik@bgsu.edu>
Date:   Wed, 18 Mar 2015 21:42:44 -0400

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.

Diffstat:
combox/silo.py | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 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):