Answer the question
In order to leave comments, you need to log in
Why does find_one throw Command raised an exception: TypeError: string indices must be integers?
The essence of the question is that when searching through find_one (more precisely ), an error occurs Command raised an exception: TypeError: string indices must be integers.
And if you use find instead of "find_one", then everything is fine. Why? for x in db.users.find_one({"id": 1934})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question