From 470f06cccbf26f98dd2df7ddecf24a78f140fe11 Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Thu, 18 Aug 2022 10:58:51 -0700 Subject: [PATCH] Different message factories will return same message class for same descriptor in python. PiperOrigin-RevId: 468499201 --- python/descriptor.c | 1 - 1 file changed, 1 deletion(-) diff --git a/python/descriptor.c b/python/descriptor.c index 105461294a..4d238bc4b8 100644 --- a/python/descriptor.c +++ b/python/descriptor.c @@ -212,7 +212,6 @@ PyObject* PyUpb_Descriptor_Get(const upb_MessageDef* m) { PyObject* PyUpb_Descriptor_GetClass(const upb_MessageDef* m) { PyObject* ret = PyUpb_ObjCache_Get(upb_MessageDef_MiniTable(m)); - assert(ret); return ret; }