add error handle with message
This commit is contained in:
parent
341e5904c8
commit
e1c5664cd8
1 changed files with 3 additions and 0 deletions
|
|
@ -177,6 +177,9 @@ class Message(ComponentBase):
|
|||
|
||||
def _convert_content(self, content):
|
||||
doc_id = get_uuid()
|
||||
|
||||
if not self._param.output_format or not isinstance(self._param.output_format, str):
|
||||
return
|
||||
|
||||
if self._param.output_format.lower() not in {"markdown", "html", "pdf", "docx"}:
|
||||
self._param.output_format = "markdown"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue