Guard against code generation errors while adding a method object
This commit is contained in:
1 parent
e7754d038a
commit
d85131349a
1 file changed
+4
-1
@@ -969,7 +969,10 @@ public:
|
||||
self.methods[name] = overload
|
||||
|
||||
method.class_ = self
|
||||
overload.add(method)
|
||||
try:
|
||||
utils.call_with_error_handling(overload.add, (method,), {}, method)
|
||||
except utils.SkipWrapper:
|
||||
return
|
||||
else:
|
||||
self.nonpublic_methods.append(method)
|
||||
if method.is_virtual:
|
||||
|
||||
Reference in new issue
Block a user