chore: format

This commit is contained in:
Timothy Jaeryang Baek
2026-05-11 02:51:59 +09:00
parent 0037baeb26
commit 4856ce48be
4 changed files with 26 additions and 15 deletions
+1 -5
View File
@@ -891,11 +891,7 @@ async def _make_channel_emitter(request_info):
elif event_type == 'chat:message:error':
error = event_data.get('data', {}).get('error', {})
error_content = (
error.get('content', 'An error occurred')
if isinstance(error, dict)
else str(error)
)
error_content = error.get('content', 'An error occurred') if isinstance(error, dict) else str(error)
await _emit_channel_update(f'Error: {error_content}', done=True)
return __channel_emitter__