summaryrefslogtreecommitdiffstats
path: root/mirrors
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2019-01-21 20:49:05 +0100
committerJelle van der Waa <jelle@vdwaa.nl>2019-01-21 21:20:19 +0100
commit632a5073d9afea08ceb80cf47621640824cbc895 (patch)
tree1070ffd752180bfb6fed1f8d889259424212c254 /mirrors
parente0700d40aa9e5f2e3e2b32d6743768bb0057d330 (diff)
downloadarchweb-632a5073d9afea08ceb80cf47621640824cbc895.tar.gz
archweb-632a5073d9afea08ceb80cf47621640824cbc895.zip
mirrors: types.StringTypes does not exists in Python 3
Diffstat (limited to 'mirrors')
-rw-r--r--mirrors/management/commands/mirrorcheck.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mirrors/management/commands/mirrorcheck.py b/mirrors/management/commands/mirrorcheck.py
index 202937e5..88dc1e54 100644
--- a/mirrors/management/commands/mirrorcheck.py
+++ b/mirrors/management/commands/mirrorcheck.py
@@ -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 \
re.search(r'550.*No such file', e.reason):
# similar to 404 case above, still record duration
end = time.time()