mirror of
https://github.com/grahampugh/macadmin-scripts.git
synced 2025-12-17 17:56:33 +00:00
don't error if no device id
This commit is contained in:
parent
f8cdedd509
commit
8fd38329d7
@ -112,7 +112,7 @@ def get_bridge_id():
|
|||||||
remotectl_output = subprocess.check_output(remotectl_cmd)
|
remotectl_output = subprocess.check_output(remotectl_cmd)
|
||||||
bridge_id = remotectl_output.decode("utf8").split(" ")[-1].split("\n")[0]
|
bridge_id = remotectl_output.decode("utf8").split(" ")[-1].split("\n")[0]
|
||||||
except subprocess.CalledProcessError as err:
|
except subprocess.CalledProcessError as err:
|
||||||
raise ReplicationError(err)
|
return None
|
||||||
return bridge_id
|
return bridge_id
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user