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]]):