Changed subprocess run for chcek_output and decode bytes to utf-8 (#51)
parent
6a32e5b9b9
commit
9b78855676
|
@ -32,5 +32,5 @@ def uci_get(key: str) -> str:
|
||||||
:return: str
|
:return: str
|
||||||
"""
|
"""
|
||||||
|
|
||||||
out = subprocess.run(["uci", "get", key])
|
out = subprocess.check_output(["uci", "get", key]).decode("utf-8")
|
||||||
return out.stdout
|
return out
|
||||||
|
|
Loading…
Reference in New Issue