Type of mc object as well as repr in AttributeError message
Small optimization of AttributeError