py2.7c: fix networkmanager on non-0 status code, I guess?

master
Laura Liberda 2020-11-29 03:14:47 +01:00
parent 23e0670e25
commit 1f9cf6839f
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class NetworkManagerConnector:
try:
subp = subprocess.check_output(self.NMCLI_BASE + args).decode("utf-8")
except subprocess.CalledProcessError as err:
subp = err.output
subp = err.output.decode("utf-8")
if parse:
# if no output