diff --git a/pickledb.py b/pickledb.py index 8ff5552..c116dc2 100644 --- a/pickledb.py +++ b/pickledb.py @@ -129,10 +129,7 @@ def set(self, key, value): def get(self, key): '''Get the value of a key''' - try: - return self.db[key] - except KeyError: - return False + return self.db.get(key, False) def getall(self): '''Return a list of all keys in db'''