Commit 598797f7 authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

Fix bug: 400 error code is interpreted as found

parent 44765088
......@@ -61,7 +61,7 @@ def check_url_exists(url):
try:
r = sess.head(url, allow_redirects=True, timeout=1)
r.close()
if r.status_code <= 400:
if r.status_code < 400:
return STATUS_EXISTS
else:
logger.debug('The server responded with status code: %s', r.status_code)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment