Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
DavdGao committed May 15, 2024
1 parent ef185b8 commit 067ec25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/agentscope/parsers/tagged_content_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

0 comments on commit 067ec25

Please sign in to comment.