summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFledermann <37776145+Fledermann@users.noreply.github.com>2019-02-20 18:21:00 +0100
committerJelle van der Waa <jelle@vdwaa.nl>2019-02-22 20:17:35 +0100
commit2cf39148de6f44eed436e95b887857771eab7818 (patch)
treee7e8c1b2a876f932371ac67ff92438b17cf758d2
parent8507008a52681b617ff5adb8f1b4e163f5ffbc46 (diff)
downloadarchweb-2cf39148de6f44eed436e95b887857771eab7818.tar.gz
archweb-2cf39148de6f44eed436e95b887857771eab7818.zip
Decode subprocess output
-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 b59bc66b..70429b71 100644
--- a/mirrors/management/commands/mirrorcheck.py
+++ b/mirrors/management/commands/mirrorcheck.py
@@ -202,7 +202,7 @@ def check_rsync_url(mirror_url, location, timeout):
if proc.returncode != 0:
logger.debug("error: %s, %s", url, errdata)
log.is_success = False
- log.error = errdata.strip()
+ log.error = errdata.strip().decode('utf-8')
# look at rsync error code- if we had a command error or timed out,
# don't record a duration as it is misleading
if proc.returncode in (1, 30, 35):