Browse Source

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

command_line
Theo 1 year ago
committed by GitHub
parent
commit
9b78855676
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Libraries/Python3/pineapple/helpers/uci_helpers.py

4
Libraries/Python3/pineapple/helpers/uci_helpers.py

@ -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
Loading…
Cancel
Save