Removed unused argument to error message.

It is not useful to include the argument, because this message is only printed when the argument type is `kUpb_CType_Message`.

PiperOrigin-RevId: 505230804
pull/13171/head
Joshua Haberman 2 years ago committed by Copybara-Service
parent 7ad307eea8
commit 1c8ddf248e
  1. 4
      python/convert.c

@ -272,9 +272,7 @@ bool PyUpb_PyToUpb(PyObject* obj, const upb_FieldDef* f, upb_MessageValue* val,
return true;
}
case kUpb_CType_Message:
// TODO(b/238226055): Include ctype in error message.
PyErr_Format(PyExc_ValueError, "Message objects may not be assigned",
upb_FieldDef_CType(f));
PyErr_Format(PyExc_ValueError, "Message objects may not be assigned");
return false;
default:
PyErr_Format(PyExc_SystemError,

Loading…
Cancel
Save