From cb86732f12d799a1110c7a552fc60fef507d6352 Mon Sep 17 00:00:00 2001 From: imp <106537315+imptype@users.noreply.github.com> Date: Mon, 1 Sep 2025 19:47:28 +0100 Subject: [PATCH] Change ValueError to RuntimeError --- discord/http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/http.py b/discord/http.py index b08a1c7f8..a373b4a12 100644 --- a/discord/http.py +++ b/discord/http.py @@ -441,7 +441,7 @@ class Ratelimit: continue break else: - raise ValueError('Global reset at changed more than 3 times') + raise RuntimeError('Global reset at changed more than 3 times') async def _wait(self): # Consider waiting if none is remaining @@ -476,7 +476,7 @@ class Ratelimit: continue # sleep again break else: - raise ValueError('Reset at changed more than 3 times') + raise RuntimeError('Reset at changed more than 3 times') async def acquire(self): start_time: float = self.http.loop.time()