Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 17, 2023
1 parent 1b74ee8 commit 2967068
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/graia/ariadne/message/chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,8 @@ def get(self, element_class: Type[Element_T], count: int = -1) -> List[Element_T
res = super().get(element_class, count)
if isinstance(res, (Quote, Source)):
raise IndexError(
(
"MessageChain.get(Quote/Source) is removed in 0.10.0.\n"
"See https://github.com/GraiaProject/Ariadne/blob/dev/CHANGELOG.md#095"
),
"MessageChain.get(Quote/Source) is removed in 0.10.0.\n"
"See https://github.com/GraiaProject/Ariadne/blob/dev/CHANGELOG.md#095",
)
return res

Expand Down

0 comments on commit 2967068

Please sign in to comment.