node_manager_fkie: fix crash while start master_discovery with master_sync on
@@ -813,6 +813,7 @@ class MainWindow(QMainWindow):
if self._syncs_to_start:
if msg.state in [MasterState.STATE_NEW, MasterState.STATE_CHANGED]:
# we don't know which name for host was used to start master discovery
+ try:
if host in self._syncs_to_start:
self.on_sync_start(msg.master.uri)
self._syncs_to_start.remove(host)
@@ -825,6 +826,8 @@ class MainWindow(QMainWindow):
if address in self._syncs_to_start:
self.on_sync_start(msg.master.uri)
self._syncs_to_start.remove(address)
+ except ValueError:
+ pass
# if len(self.masters) == 0:
# self._setLocalMonitoring(True)
