better error message for attributeerrors for attributeerrors raised in properties