Using classes DoesNotExist instead of general Exception