summaryrefslogtreecommitdiff
path: root/mirrors/management/commands/mirrorcheck.py
diff options
context:
space:
mode:
Diffstat (limited to 'mirrors/management/commands/mirrorcheck.py')
-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 e48aa42e..d2a27bee 100644
--- a/mirrors/management/commands/mirrorcheck.py
+++ b/mirrors/management/commands/mirrorcheck.py
@@ -139,7 +139,7 @@ def check_mirror_url(mirror_url, location, timeout):
if isinstance(e.reason, socket.timeout):
log.error = "Connection timed out."
elif isinstance(e.reason, socket.error):
- log.error = e.reason.args[1]
+ log.error = e.reason.args[-1]
logger.debug("failed: %s, %s", url, log.error)
except HTTPException:
# e.g., BadStatusLine