Skip to content

Commit

Permalink
Merge pull request #175 from hermitgreen/master
Browse files Browse the repository at this point in the history
文生图执行错误时未能正确raise Exception
  • Loading branch information
seiriosPlus authored Mar 11, 2024
2 parents fcaa827 + 4578508 commit 50a5130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appbuilder/core/components/text_to_image/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def tool_eval(
'text': result.content['img_urls'][0],
}
except Exception as e:
result = f'绘图时发生错误:{e}'
raise AppBuilderServerException(f'绘图时发生错误:{e}')
if streaming:
yield result
else:
Expand Down

0 comments on commit 50a5130

Please sign in to comment.