MCPcopy Index your code
hub / github.com/dataease/SQLBot / _err

Function _err

backend/apps/chat/api/chat.py:241–242  ·  view source on GitHub ↗
(_e: Exception)

Source from the content-addressed store, hash-verified

239 traceback.print_exc()
240
241 def _err(_e: Exception):
242 yield 'data:' + orjson.dumps({'content': str(_e), 'type': 'error'}).decode() + '\n\n'
243
244 return StreamingResponse(_err(e), media_type="text/event-stream")
245

Callers 4

ask_recommend_questionsFunction · 0.85
question_answer_innerFunction · 0.85
stream_sqlFunction · 0.85
analysis_or_predictFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected