From 51b7f35b07143f7142dc84d634d4211a2bdedfe2 Mon Sep 17 00:00:00 2001 From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de> Date: Sun, 23 Feb 2020 18:27:56 +0100 Subject: [PATCH] Remove non-working etherpad check --- configproxy.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/configproxy.py b/configproxy.py index 35e12fb..c8c203e 100755 --- a/configproxy.py +++ b/configproxy.py @@ -378,17 +378,12 @@ def check_printing(PRINTING_SERVER, PRINTING_USER, PRINTING_PRINTERS): def check_etherpad(ETHERPAD_URL, EMPTY_ETHERPAD): import requests - key = "Server" try: answer = requests.get(ETHERPAD_URL) if answer.status_code != 200: raise ValueError( "The etherpad does not return 200 OK at {}".format( ETHERPAD_URL)) - headers = answer.headers - if key not in headers or "Etherpad" not in headers[key]: - raise ValueError("{} does not look like an etherpad!".format( - ETHERPAD_URL)) except requests.exceptions.ConnectionError as error: raise ValueError("Cannot connect to the etherpad at {}: {}".format( ETHERPAD_URL, error)) -- GitLab