Skip to content

Commit 48b6a8f

Browse files
authored
Merge pull request #489 from thpierce/fix/httplib-test-invalid-url
fix: unwrap() broken on wrapt 2.x due to ObjectProxy class identity mismatch
2 parents f2d0903 + 8b63baf commit 48b6a8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aws_xray_sdk/ext/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,5 +135,5 @@ def unwrap(obj, attr):
135135
:param attr: attribute on `obj` to unwrap
136136
"""
137137
f = getattr(obj, attr, None)
138-
if f and isinstance(f, wrapt.ObjectProxy) and hasattr(f, '__wrapped__'):
138+
if f and hasattr(f, '__wrapped__'):
139139
setattr(obj, attr, f.__wrapped__)

0 commit comments

Comments
 (0)