From 9c8fbd74b1d922f241c926cc26d609d0d13ae1c5 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Mon, 19 Feb 2024 21:27:16 +0000 Subject: ruff lint fix: Run remaining auto-fixable rules --- pydis_core/utils/pagination.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pydis_core/utils/pagination.py') diff --git a/pydis_core/utils/pagination.py b/pydis_core/utils/pagination.py index a87bb290..aac75ae1 100644 --- a/pydis_core/utils/pagination.py +++ b/pydis_core/utils/pagination.py @@ -349,7 +349,7 @@ class LinePaginator(Paginator): except discord.HTTPException as e: # Suppress if trying to act on an archived thread. if e.code != 50083: - raise e + raise if reaction.emoji == pagination_emojis.first: current_page = 0 @@ -385,7 +385,7 @@ class LinePaginator(Paginator): if e.code == 50083: # Trying to act on an archived thread, just ignore and abort break - raise e + raise log.debug("Ending pagination and clearing reactions.") with suppress(discord.NotFound): @@ -394,4 +394,4 @@ class LinePaginator(Paginator): except discord.HTTPException as e: # Suppress if trying to act on an archived thread. if e.code != 50083: - raise e + raise -- cgit v1.2.3