Re-fix stopping
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 6s

This commit is contained in:
Nexus 2024-05-31 03:27:09 +01:00
parent 9f4edd4b27
commit 34a3cc622e
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -267,7 +267,7 @@ class YTDLCog(commands.Cog):
def _download_hook(_data: dict[str, typing.Any]): def _download_hook(_data: dict[str, typing.Any]):
if stop.is_set(): if stop.is_set():
raise ValueError("Download cancelled.") raise RuntimeError("Download cancelled.")
n = time.time() n = time.time()
_total = _data.get("total_bytes", _data.get("total_bytes_estimate")) or ctx.guild.filesize_limit _total = _data.get("total_bytes", _data.get("total_bytes_estimate")) or ctx.guild.filesize_limit
if _total: if _total: