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

This commit is contained in:
Laura Liberda 2020-11-29 03:14:47 +01:00
parent 23e0670e25
commit 1f9cf6839f

View file

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