>From 4f4231a8466a456e2aea8458e978c62e85b67a76 Mon Sep 17 00:00:00 2001 From: koffeinfriedhof Date: Thu, 25 May 2023 20:10:29 +0200 Subject: [PATCH 2/3] moved curl.close() to not break the debugging entries --- hclient/hlibrary.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hclient/hlibrary.py b/hclient/hlibrary.py index ce77036..cf17c42 100644 --- a/hclient/hlibrary.py +++ b/hclient/hlibrary.py @@ -134,7 +134,6 @@ class HTTPClient(object): except: result = False - curl.close() contents = self._contents.getvalue().decode('utf-8') self._contents = io.BytesIO() @@ -158,6 +157,8 @@ class HTTPClient(object): #DBG("hlibrary.py::perform() request_path=%s result=%s" % (request_path , result)) # DEBUG END + # moved curl.close() to not break debugging entries + curl.close() return (result, contents) -- 2.40.1