Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions kazoo/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1405,13 +1405,14 @@ def reconfig_async(self, joining, leaving, new_members, from_config):

"""
if joining and not isinstance(joining, basestring):
raise TypeError("joining must be a string")
raise TypeError("Invalid type for 'joining' (string expected)")
if leaving and not isinstance(leaving, basestring):
raise TypeError("leaving must be a string")
raise TypeError("Invalid type for 'leaving' (string expected)")
if new_members and not isinstance(new_members, basestring):
raise TypeError("new_members must be a string")
raise TypeError("Invalid type for 'new_members' (string "
"expected)")
if not isinstance(from_config, int):
raise TypeError("from_config must be an int")
raise TypeError("Invalid type for 'from_config' (int expected)")

async_result = self.handler.async_result()
reconfig = Reconfig(joining, leaving, new_members, from_config)
Expand Down