From 92b0bd8f8f7fc51b927f4fa06e9834e589f7ce89 Mon Sep 17 00:00:00 2001 From: Graham R Pugh Date: Thu, 6 Aug 2020 21:06:23 +0200 Subject: [PATCH] suppress stderr - second attempt --- installinstallmacos.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/installinstallmacos.py b/installinstallmacos.py index 02a7733..008e227 100755 --- a/installinstallmacos.py +++ b/installinstallmacos.py @@ -107,15 +107,9 @@ def get_hw_model(): def get_bridge_id(): """Gets the local system DeviceID for T2 Macs""" - remotectl_cmd = [ - "/usr/libexec/remotectl", - "get-property", - "localbridge", - "HWModel", - "2>/dev/null", - ] + remotectl_cmd = ["/usr/libexec/remotectl", "get-property", "localbridge", "HWModel"] try: - remotectl_output = subprocess.check_output(remotectl_cmd) + remotectl_output = subprocess.check_output(remotectl_cmd, , stderr=subprocess.STDOUT) bridge_id = remotectl_output.decode("utf8").split(" ")[-1].split("\n")[0] except subprocess.CalledProcessError as err: return None