Skip to content

Commit

Permalink
fix KeyError
Browse files Browse the repository at this point in the history
  • Loading branch information
breakwa11 committed Jun 5, 2017
1 parent 82f8fef commit 44185c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def del_server_out_of_bound_safe(self, last_rows, rows):
if not cfgchange and port in ServerPool.get_instance().tcp_ipv6_servers_pool:
relay = ServerPool.get_instance().tcp_ipv6_servers_pool[port]
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
break

Expand Down

0 comments on commit 44185c9

Please sign in to comment.