Browse Source

fix KeyError

dev
破娃酱 8 years ago
parent
commit
44185c9fff
  1. 2
      db_transfer.py

2
db_transfer.py

@ -139,7 +139,7 @@ class TransferBase(object):
if not cfgchange and port in ServerPool.get_instance().tcp_ipv6_servers_pool: if not cfgchange and port in ServerPool.get_instance().tcp_ipv6_servers_pool:
relay = ServerPool.get_instance().tcp_ipv6_servers_pool[port] relay = ServerPool.get_instance().tcp_ipv6_servers_pool[port]
for name in merge_config_keys: for name in merge_config_keys:
if name in cfg and not self.cmp(cfg[name], relay._config[name]): if (name in cfg) and ((name not in relay._config) or not self.cmp(cfg[name], relay._config[name])):
cfgchange = True cfgchange = True
break break

Loading…
Cancel
Save