Skip to content

Commit

Permalink
Changed subprocess run for chcek_output and decode bytes to utf-8 (ha…
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaV2 authored Aug 16, 2021
1 parent 6a32e5b commit 9b78855
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Libraries/Python3/pineapple/helpers/uci_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9b78855

Please sign in to comment.