dicts don't have .haskey()

Apparently we don't have test coverage for this yet.
This commit is contained in:
Brian Warner 2016-08-26 13:56:50 -07:00
parent 140c9a92cd
commit a970828b94

View File

@ -377,9 +377,7 @@ class Client(node.Node, pollmixin.PollMixin):
# utilize the loaded static server specifications
for key, server in self.connections_config['servers'].items():
handlers = None
if server.haskey("transport_handlers"):
handlers = server["transport_handlers"]
handlers = server.get("transport_handlers")
eventually(self.storage_broker.got_static_announcement,
key, server['announcement'], handlers)