Cleanup: remove unnecessary PyC_Err_Format_Prefix use

In this case there is no error to prefix, use PyErr_Format instead.
This commit is contained in:
Campbell Barton
2023-09-15 14:23:16 +10:00
parent 9903a692cc
commit 425cc82aff

View File

@@ -1665,11 +1665,11 @@ static int pyrna_py_to_prop(
}
}
else {
PyC_Err_Format_Prefix(PyExc_TypeError,
"%.200s %.200s.%.200s doesn't support None from string types",
error_prefix,
RNA_struct_identifier(ptr->type),
RNA_property_identifier(prop));
PyErr_Format(PyExc_TypeError,
"%.200s %.200s.%.200s doesn't support None from string types",
error_prefix,
RNA_struct_identifier(ptr->type),
RNA_property_identifier(prop));
return -1;
}
}