From 0795de452450147dd6e291e55ddede8aa08db779 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20Kudela?= <kudmich@syncad.com>
Date: Thu, 16 Jan 2025 10:57:37 +0100
Subject: [PATCH] Handle ReadTimeout error in RequestCommunicator class

---
 helpy/helpy/_communication/request_communicator.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/helpy/helpy/_communication/request_communicator.py b/helpy/helpy/_communication/request_communicator.py
index bd886b3e..5e3e0089 100644
--- a/helpy/helpy/_communication/request_communicator.py
+++ b/helpy/helpy/_communication/request_communicator.py
@@ -34,6 +34,8 @@ class RequestCommunicator(AbstractCommunicator):
                 data_received = response.content.decode()
                 self._assert_status_code(status_code=response.status_code, sent=data, received=data_received)
                 return data_received  # noqa: TRY300
+            except requests.exceptions.ReadTimeout as error:
+                last_exception = error
             except requests.exceptions.ConnectionError as error:
                 raise CommunicationError(url=url.as_string(), request=data) from error
             except requests.exceptions.RequestException as error:
-- 
GitLab