Remove tabulations from exceptions
Add missing DoesNotExistError import
Cleanup few things.
Add spaces when needed.
Remove useless variables.