Unverified Commit 538e3fc2 authored by John Wang's avatar John Wang Committed by GitHub

fix: return message error in blocking mode (#657)

parent ba3dc8ca
......@@ -390,7 +390,7 @@ class CompletionService:
result = json.loads(result)
if result.get('error'):
cls.handle_error(result)
if 'data' in result:
return cls.get_message_response_data(result.get('data'))
except ValueError as e:
if e.args[0] != "I/O operation on closed file.": # ignore this error
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment