ソースを参照

refine the error message (#3382)

### What problem does this PR solve?


### Type of change

- [x] Refactoring
tags/v0.14.0
Kevin Hu 11ヶ月前
コミット
7ab9715b0e
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更2行の追加2行の削除
  1. 2
    2
      api/apps/canvas_app.py

+ 2
- 2
api/apps/canvas_app.py ファイルの表示

@@ -119,10 +119,10 @@ def run():
except Exception as 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:
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():
nonlocal answer, cvs

読み込み中…
キャンセル
保存