aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_core/utils/pagination.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-02-19 21:27:16 +0000
committerGravatar Chris Lovering <[email protected]>2024-03-04 12:35:02 +0000
commit9c8fbd74b1d922f241c926cc26d609d0d13ae1c5 (patch)
tree0c2551275318d3ee0d64e4874121d54425ad4e4b /pydis_core/utils/pagination.py
parentruff lint fix: Add explicit namespaces for packages (diff)
ruff lint fix: Run remaining auto-fixable rules
Diffstat (limited to 'pydis_core/utils/pagination.py')
-rw-r--r--pydis_core/utils/pagination.py6
1 files changed, 3 insertions, 3 deletions
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