Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
protokollsystem
proto3
Commits
51b7f35b
Verified
Commit
51b7f35b
authored
Feb 23, 2020
by
Robin Sonnabend
Browse files
Remove non-working etherpad check
parent
e31f0073
Changes
1
Hide whitespace changes
Inline
Side-by-side
configproxy.py
View file @
51b7f35b
...
...
@@ -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
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment