Decode byte string to string

This commit is contained in:
Justus Grunow 2025-05-07 21:58:40 -04:00
parent 8bc349c21f
commit 13af3c562c

View File

@ -7,7 +7,7 @@ def ping(host):
if response.returncode == 0: if response.returncode == 0:
return [True, ""] return [True, ""]
elif response.stderr: elif response.stderr:
return [False, response.stderr] return [False, response.stderr.decode("UTF-8")]
else: else:
return [False, ""] return [False, ""]