From dcfcd5b55f19e46e2fe48e4950e186d8c4874888 Mon Sep 17 00:00:00 2001 From: Tobias Persson Date: Thu, 29 Aug 2024 07:21:38 +0200 Subject: [PATCH] Only load json if requested to --- src/etos_test_runner/lib/log_area.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etos_test_runner/lib/log_area.py b/src/etos_test_runner/lib/log_area.py index b80d599..a509b96 100644 --- a/src/etos_test_runner/lib/log_area.py +++ b/src/etos_test_runner/lib/log_area.py @@ -306,7 +306,7 @@ def __retry_upload( # is not 0 bytes in size. log_file.seek(0) request = getattr(self.etos.http, verb.lower()) - response = request(url, data=log_file, **requests_kwargs).json() + response = request(url, data=log_file, **requests_kwargs) if as_json: yield response.json() else: