From 629a6c50a31cb52cbce98d91b3fcf07b430b6279 Mon Sep 17 00:00:00 2001 From: Patrick Huck Date: Thu, 23 Nov 2023 01:22:31 -0800 Subject: [PATCH] close session in _load --- mpcontribs-client/mpcontribs/client/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mpcontribs-client/mpcontribs/client/__init__.py b/mpcontribs-client/mpcontribs/client/__init__.py index 3f16c49ca..780b0df59 100644 --- a/mpcontribs-client/mpcontribs/client/__init__.py +++ b/mpcontribs-client/mpcontribs/client/__init__.py @@ -680,6 +680,7 @@ def _load(protocol, host, headers_json, project, version): del config[key] config["bravado"] = bravado_config swagger_spec = Spec.from_dict(spec_dict, origin_url, http_client, config) + http_client.session.close() if not spec_dict["paths"]: return swagger_spec