From 8b3c38ee594080bacc834e6c2206585828812db8 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Fri, 19 Apr 2024 16:36:13 +0100 Subject: [PATCH] Properly exit retry loop --- cogs/other.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cogs/other.py b/cogs/other.py index 6ad7d77..e2426f1 100644 --- a/cogs/other.py +++ b/cogs/other.py @@ -760,6 +760,7 @@ class OtherCog(commands.Cog): continue async for chunk in response.aiter_bytes(): f.write(chunk) + break else: raise discord.HTTPException(response, "failed to download any of %s" % ", ".join(self.urls))