Skip to content

Commit cdfcefa

Browse files
committed
Stop using deprecated API
fixes kubernetes-client#2169
1 parent 1193741 commit cdfcefa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kubernetes/client/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def __init__(self, status=None, reason=None, http_resp=None):
8888
self.status = http_resp.status
8989
self.reason = http_resp.reason
9090
self.body = http_resp.data
91-
self.headers = http_resp.getheaders()
91+
self.headers = http_resp.headers
9292
else:
9393
self.status = status
9494
self.reason = reason

0 commit comments

Comments
 (0)