From 067ec25a8f0ffa5c2dfedef153bb2f0284ae2b8d Mon Sep 17 00:00:00 2001 From: DavdGao Date: Wed, 15 May 2024 18:09:08 +0800 Subject: [PATCH] reformat --- src/agentscope/parsers/tagged_content_parser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/agentscope/parsers/tagged_content_parser.py b/src/agentscope/parsers/tagged_content_parser.py index dd6d2fdbc..9f7a17d36 100644 --- a/src/agentscope/parsers/tagged_content_parser.py +++ b/src/agentscope/parsers/tagged_content_parser.py @@ -189,7 +189,7 @@ def parse(self, response: ModelResponse) -> ModelResponse: f"{tagged_content.tag_begin} and " f"{tagged_content.tag_end} should be a JSON " f'object. An error "{e}" occurred when parsing: ' - f'{raw_response}', + f"{raw_response}", raw_response=raw_response, ) from None @@ -202,8 +202,8 @@ def parse(self, response: ModelResponse) -> ModelResponse: and tagged_content.name in self.keys_allow_missing ): continue - else: - raise e from None + + raise e from None response.parsed = tag_to_content return response