Properly exit retry loop

This commit is contained in:
Nexus 2024-04-19 16:36:13 +01:00 committed by GitHub
parent a36110ed32
commit 8b3c38ee59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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))