From 2cf39148de6f44eed436e95b887857771eab7818 Mon Sep 17 00:00:00 2001 From: Fledermann <37776145+Fledermann@users.noreply.github.com> Date: Wed, 20 Feb 2019 18:21:00 +0100 Subject: Decode subprocess output --- mirrors/management/commands/mirrorcheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.3-55-g3dc8