Skip to content
Snippets Groups Projects
Commit 6c5f317f authored by qweqweasdasd's avatar qweqweasdasd
Browse files

Added multiple retries during connection creation

parent aa2445cf
No related branches found
No related tags found
1 merge request!7Script fix bug connection
Pipeline #89311 passed
......@@ -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 after 5 retries")
def get_version():
gmp = create_connection()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment