From d5c093a30d7d41de195fc577c4529787a4345dfd Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 10 Oct 2018 09:46:01 -0400 Subject: [PATCH] Provide fallback for unexpected reply in collective show --- confluent_server/bin/collective | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/bin/collective b/confluent_server/bin/collective index 5f0c78f6..c8d31e62 100644 --- a/confluent_server/bin/collective +++ b/confluent_server/bin/collective @@ -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():