From 05ffe354f35fd9af1f65bc11a92b4b56edbe568a Mon Sep 17 00:00:00 2001 From: Ritik Ranjan Date: Sat, 30 Apr 2022 10:51:11 +0530 Subject: [PATCH] Update http.py --- Github/http.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Github/http.py b/Github/http.py index 5aa5fda..45b0b07 100644 --- a/Github/http.py +++ b/Github/http.py @@ -137,6 +137,8 @@ class http: auth=self.auth, trace_configs=[trace_config], ) + if not hasattr(self.session, "_rates"): + self.session._rates = Rates('', '', '', '', '') return self def update_headers(self, *, flush: bool = False, new_headers: Dict[str, Union[str, int]]):