Guard against code generation errors while adding a method object

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2008-06-02 18:06:46 +01:00
1 parent e7754d038a
commit d85131349a
1 file changed
+4 -1
+4 -1
View File
@@ -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: