From 82ed61ee166a5f5b176a5904ce02ed88bd4f589b Mon Sep 17 00:00:00 2001
From: qweqweasdasd <qweqweasdasd@infn.it>
Date: Tue, 6 Dec 2022 11:23:18 +0100
Subject: [PATCH] Added multiple retries during connection creation

---
 files/script.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/files/script.py b/files/script.py
index 045e163..d3cd80c 100644
--- a/files/script.py
+++ b/files/script.py
@@ -27,7 +27,7 @@ def create_connection():
             print("WARNING: Connection error with the gmp endpoint. Remaining {retry} retries")
             retry -= 1
             sleep(0.5)
-    raise Exception("Impossible connect to the gmp endpoint after 5 retries")
+    raise Exception("Impossible connect to the gmp endpoint even after 5 retries")
 
 def get_version():
     gmp = create_connection()
-- 
GitLab