change to attribute error instead of value error for format specifier