瀏覽代碼

refine the error message (#3382)

### What problem does this PR solve?


### Type of change

- [x] Refactoring
tags/v0.14.0
Kevin Hu 11 月之前
父節點
當前提交
7ab9715b0e
No account linked to committer's email address
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      api/apps/canvas_app.py

+ 2
- 2
api/apps/canvas_app.py 查看文件

except Exception as e: except Exception as e:
return server_error_response(e) return server_error_response(e)


assert answer is not None, "Nothing. Is it over?"
assert answer is not None, "The dialog flow has no way to interact with you. Please add an 'Interact' component to the end of the flow."


if stream: if stream:
assert isinstance(answer, partial), "Nothing. Is it over?"
assert isinstance(answer, partial), "The dialog flow has no way to interact with you. Please add an 'Interact' component to the end of the flow."


def sse(): def sse():
nonlocal answer, cvs nonlocal answer, cvs

Loading…
取消
儲存