summaryrefslogtreecommitdiff
path: root/mirrors/management/commands/mirrorcheck.py
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-10-02 20:40:34 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-10-02 20:40:34 -0400
commitea00a099dffd7157c93af54b5817734348d2bbc6 (patch)
tree89fa4ba0c0ac19a4286ba4c4cb64f77536b1a098 /mirrors/management/commands/mirrorcheck.py
parent1a1fd4a3d6aa7f6b2338f7751f5f97a30a059a04 (diff)
parent0f0ce18109f8104d7b2abe9024ef26fa07ff0292 (diff)
Merge branch 'archweb' into archweb-generic
Conflicts: templates/public/download.html templates/public/index.html
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