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