2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 19:10:10 +00:00

Provide fallback for unexpected reply in collective show

This commit is contained in:
Jarrod Johnson 2018-10-10 09:46:01 -04:00
parent cf9d2a43e8
commit d5c093a30d

View File

@ -68,7 +68,7 @@ def join_collective(server, invitation):
res = tlvdata.recv(s)
res = res.get('collective',
{'status': 'Unknown response: ' + repr(res)})
print(res.get('status', res['error']))
print(res.get('status', res.get('error', repr(res))))
def show_collective():