From 06279d1346fc8bffd3f75ab3ca5aba14232ce77e Mon Sep 17 00:00:00 2001 From: marcsello Date: Wed, 13 May 2020 17:19:08 +0200 Subject: [PATCH] Fixed cc not using session --- communicators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/communicators.py b/communicators.py index 74d25ac..25427b1 100644 --- a/communicators.py +++ b/communicators.py @@ -50,7 +50,7 @@ class ConsumerCommunicator: ip = info['ip'] try: # request synchronization - response = requests.post(f"http://{ip}/sync", json={'uuid': os.environ['LOCAL_UUID']}, timeout=5) + response = self._session.post(f"http://{ip}/sync", json={'uuid': os.environ['LOCAL_UUID']}, timeout=5) except (requests.exceptions.ConnectionError, requests.exceptions.Timeout) as e: logging.error(f"Error while syncing to {ip}: {str(e)}")