In my script, when I try to get the value of a certain key in my database, I receive a KeyError no matter what the key is. I’ve been having this problem on multiple Repls, the link is below.
db['http://replit.com'] = ""
print(db["http://replit.com"])
This script returns this:
Traceback (most recent call last):
File "main.py", line 140, in <module>
db['http://replit.com']
File "/home/runner/pysearch/venv/lib/python3.8/site-packages/replit/database/database.py", line 439, in __getitem__
raw_val = self.get_raw(key)
File "/home/runner/pysearch/venv/lib/python3.8/site-packages/replit/database/database.py", line 479, in get_raw
raise KeyError(key)
KeyError: 'http://replit.com'
Please help, thanks!