py2.7c: fix networkmanager on non-0 status code, I guess?
This commit is contained in:
parent
23e0670e25
commit
1f9cf6839f
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue