mirror of
https://github.com/xcat2/confluent.git
synced 2026-03-28 13:13:33 +00:00
Fix handling of error messages in async
ConfluentNodeError branch of messages were not recognized. Correct the oversight.
This commit is contained in:
@@ -853,7 +853,8 @@ class AsyncMessage(ConfluentMessage):
|
||||
def raw(self):
|
||||
rsp = self.msgpair[1]
|
||||
rspdict = None
|
||||
if isinstance(rsp, ConfluentMessage):
|
||||
if (isinstance(rsp, ConfluentMessage) or
|
||||
isinstance(rsp, ConfluentNodeError)):
|
||||
rspdict = rsp.raw()
|
||||
elif isinstance(rsp, dict): # console metadata
|
||||
rspdict = rsp
|
||||
|
||||
Reference in New Issue
Block a user