Open Otomatyk opened 1 year ago
Hello. In PickeDB.get we see :
try: return self.db[key] except KeyError: return False
However, I think it must uses dict.get that returns the default arg if the key doesn't exist. The code will loke like this : return self.db.get(key, False)
dict.get
default
return self.db.get(key, False)
Hello. In PickeDB.get we see :
However, I think it must uses
dict.get
that returns thedefault
arg if the key doesn't exist. The code will loke like this :return self.db.get(key, False)