Changed subprocess run for chcek_output and decode bytes to utf-8 (#51)

command_line
Theo 2021-08-17 01:41:41 +02:00 committed by GitHub
parent 6a32e5b9b9
commit 9b78855676
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -32,5 +32,5 @@ def uci_get(key: str) -> str:
:return: str
"""
out = subprocess.run(["uci", "get", key])
return out.stdout
out = subprocess.check_output(["uci", "get", key]).decode("utf-8")
return out