mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Suppress exception while updating wrapper object in Python2 (PY-18078)
This commit is contained in:
@@ -22,7 +22,10 @@ def wrap_attr(obj, attr):
|
||||
class ObjectWrapper(object):
|
||||
def __init__(self, obj):
|
||||
self.wrapped_object = obj
|
||||
functools.update_wrapper(self, obj)
|
||||
try:
|
||||
functools.update_wrapper(self, obj)
|
||||
except:
|
||||
pass
|
||||
|
||||
def __getattr__(self, attr):
|
||||
orig_attr = getattr(self.wrapped_object, attr) #.__getattribute__(attr)
|
||||
|
||||
Reference in New Issue
Block a user