More diagnostics to attributeerror