Skip to content
Snippets Groups Projects
Commit d4ac8afa authored by Frede H's avatar Frede H :speech_balloon:
Browse files

fixed glitch when some mirrors don't answer to url

but only to a comprised of url + state
parent c70c18f7
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,7 @@ def get_mirror_response(url, maxwait=2, count=1, quiet=False):
message = ""
try:
for _ in range(count):
urlopen(url, timeout=maxwait)
urlopen(url + "state", timeout=maxwait)
probe_stop = time.time()
except URLError as err:
if hasattr(err, "reason"):
......
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