I have a indentation error in Python and i dont know why and how to resolve it.
I looked for special characters that i might have missed, but none found;
Why do i get this error ?
user = {'_id':username}
users.find_one(user)

IN CONCLUSSION : NEVER MIX TABS WITH SPACES!
The most common reason for this type of error is mixing tabs and spaces.
To fix it try converting all tabs to spaces in your file.
From PEP 8 — Style Guide for Python Code: