patx / pickledb

pickleDB is an open source key-value store using Python's json module.
https://patx.github.io/pickledb
BSD 3-Clause "New" or "Revised" License
925 stars 125 forks source link

fix: [pickledb.py] try-except issue #91 #93

Open kiansahafi opened 5 months ago

kiansahafi commented 5 months ago

fixed the issue #91 by changing this:

try:
    return self.db[key]
except KeyError:
    return False

into this:

return self.db.keys()