mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-08 03:14:21 +00:00
dicts don't have .haskey()
Apparently we don't have test coverage for this yet.
This commit is contained in:
parent
140c9a92cd
commit
a970828b94
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user