Skip to content

Commit

Permalink
excel2figure 作为tool运行失败时直接抛出异常、
Browse files Browse the repository at this point in the history
  • Loading branch information
barrierye committed Mar 13, 2024
1 parent a3d8613 commit 070677c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions appbuilder/core/components/excel2figure/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ def tool_eval(
'text': [result_msg.content],
}
except Exception as e:
result = f'绘制图表时发生错误:{e}'
logging.error(result, exc_info=True)
raise RuntimeError(f'绘制图表时发生错误:{e}')

if streaming:
yield result
else:
Expand Down

0 comments on commit 070677c

Please sign in to comment.