don't error if no device id

This commit is contained in:
Graham R Pugh 2020-08-06 20:57:48 +02:00
parent f8cdedd509
commit 8fd38329d7

View File

@ -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