Skip to content
Error when accessing replit database in python
Profile icon
ZoutigeWolf

Whenever i try to access my database with value = db["key"] I get the error TypeError: unexpected type "float".

This never happened before, can someone tell me what this means?

the file with problems = cogs/xp.py

You are viewing a single comment. View All
Profile icon
ZoutigeWolf

@xfinnbar
i had keys as strings and values as floats / ints in my json, they werent converted