D
D
danys_kun2020-10-30 22:05:11
Python
danys_kun, 2020-10-30 22:05:11

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 question

Ask a Question

731 491 924 answers to any question