Commit 632a5073 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

mirrors: types.StringTypes does not exists in Python 3

parent e0700d40
......@@ -140,7 +140,7 @@ def check_mirror_url(mirror_url, location, timeout):
except urllib.error.URLError as e:
log.is_success = False
log.error = e.reason
if isinstance(e.reason, types.StringTypes) and \
if isinstance(e.reason, str) and \'550.*No such file', e.reason):
# similar to 404 case above, still record duration
end = time.time()
Supports Markdown
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